Server#emit
Emits an event to all connected clients. The following two are equivalent:
var io = require('socket.io')(); io.sockets.emit('an event sent to all connected clients'); io.emit('an event sent to all connected clients');
For other available methods, see Namespace
below.
Please login to continue.