xsockets

a socket optimized for cross-domain use for the web and node

npm install xsockets
1 downloads in the last week
2 downloads in the last month

xsockets

a socket optimized for cross-domain use for the web and node. it's easy to use:

var sockets = require('xsockets');

sockets.listen(9999, function(socket) {
    socket.on('message', function(message) {
        socket.send(message); // echo
    });
});

var socket = sockets.connect('localhost:9999');

socket.send({hello:'world'});
socket.on('message', function(message) {
    console.log(message);
});
npm loves you