socker.js is the client for https://github.com/5monkeys/socker.
var socker = new Socker('ws://sock.example:8765');
socker.on('hello', function (data) {
console.log('From server:', data);
});
socker.emit('hello', {foo: 'bar'});
socker.js is the client for https://github.com/5monkeys/socker.
var socker = new Socker('ws://sock.example:8765');
socker.on('hello', function (data) {
console.log('From server:', data);
});
socker.emit('hello', {foo: 'bar'});
npm i socker.js
48
2.0.0
MIT