Websocket Multiplex Client
Its a NodeJs wrapper on client code for websocket-multiplex. It helps you to do full end to end testing on websocket-multiplexing.
How to use
Below is an sample on how to connect to a sockjs server from code, establish a channel connection and send data.
var sockjsClient = "http://127.0.0.1:8088/multiplex" null rtt: 201 ;sockjsClient { //Create youre multiplex client var client = sockjsClient; //Register the channel var mychannel_client = client; mychannel_client{ console; ; }; //Send message to server on the channel ;};sockjsClient {
View test.js for complete example on how to use the code.
Tests
Run tests using mocha
mocha testjs