Quasselcore event (libquassel) to websocket (socket.io)
Work in progress
Install the proxy with:
git clonecd quassel-proxynpm install --production
or to update
and run the following command:
node lib/quassel-proxy.js --port 64004
The proxy is now running.
⚠️ In order to have a fully working test version, your node version should be at least v0.11.13
With the proxy running, open index.html (from client directory) in your favorite browser. Fill in the inputs :
When hitting Connect button, you should start seeing some responses from the quassel server.
The proxy server acts like a basic libquassel client.
By default, events are not streamed to the browser.
Using EventReceiver class allows to triggers events callbacks in the wanted order. It is also used to automatically register events (see script.js).
To be able to use client side libquassel as if we were using it directly on the server, we must sync the whole NetworkCollection tree Object between the server and the client. It can be a little long to fetch the tree the first time, but when modifications are made server side thereafter, only patches are sent to the client (thanks to Object.Observe method).
For more details, see script.js file.
Copyright (c) 2014 Joël Charles
Licensed under the MIT license.