Server#emit
Emits an event to all connected clients. The following two are equivalent:
1 2 3 | 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.