socket.io adapter zeromq implementation.
$ npm install socket.io-zeromq
required the following:
- zeromq >= 4.0.4
var io = 3000;var zmq = ;io;
The following options are allowed:
key: the name of the key to pub/sub events on as prefix (
host: host to connect to zeromq pub/sub server on (
pubPort: port to connect to publisher of zeromq pub/sub server on (
subPort: port to connect to subscriber of zeromq pub/sub server on (
pubClient: optional, the zeromq client to publish events on
subClient: optional, the zeromq client to subscribe to events on
If you decide to supply
subClient, make sure you use node-zeromq as a client or one with an equivalent API.
First, run the socket.io zeromq server
after that, run the test.
$ make test