ZWSSock - ZeroMQ over WebSocket library
ZWSSock is implement ZWS (ZeroMQ WebSocket) for use in ZeroMQ applications.
ZWS and ZWSSock are both in early stage and protocol is not yet finalized and so is this library.
The API of ZWSSock is very similar to the API of zsock of CZMQ v3.0, so using it should be very simple.
Please note that when using WebSocket it is recommended to do it over SSL because not all firewalls likes non-text protocols over port 80.
ZWSSock currently implements the router pattern. Publisher pattern is next to come (JSMQ implements subscriber and dealer).
To build on Linux:
Review src/CZMQ-ZWSSock/Makefile - CFLAGS and LIBS assume an install and pkg-config. Tested with ØMQ=4.0.4 czmq=2.2.0.
cd src/CZMQ-ZWSSock make
This creates the 'zwstest' program in the same directory. By default it will listen on 127.0.0.1:8000. Pass a different listen socket as single argument: