Closed cooltrooper closed 11 years ago
Absolutely. On the server, the call to backboneio.listen
returns the Socket.IO object:
var io = backboneio.listen(...);
io.sockets.emit('foo');
Client-side, there's something similar:
var socket = Backbone.io.connect();
socket.on('foo', function() { ... });
Is it possible to use standard socket.io events, say for running functions not directly involving backbone. Such as the beginner code shown on the socket.io site