Mensajeria entre aplicaciones con node.js y Socket.io
1. npm install
2. node index.js
socket = io('URL_NODE',{
query: {
sub : ['NOMBRE EVENTO'}
});
this.socket.emit('EMIT', {event: 'NOMBRE EVENTO',data:{}})
this.socket.emit('SUB', {event:"NOMBRE EVENTO"});
this.socket.emit('UNSUB', {event:"NOMBRE EVENTO"});Node y NPM
@1.0 Rooms & Events
JSanoja para Dos al cubo