lib/replicator.js
function emitToClients(namespace, eventName, data) {
	// Emit to clients (in the given namespace's room) using Socket.IO
	log.replicants('emitting %s to %s:', eventName, namespace, data);
	io.to(`replicant:${namespace}`).emit(eventName, data);
}
function emitToClients(namespace, eventName, data) {
	// Emit to clients (in the given namespace's room) using Socket.IO
	log.replicants('emitting %s to %s:', eventName, namespace, data);
	io.to(`replicant:${namespace}`).emit(eventName, data);
}
function emitToClients ( namespace , eventName , data ) { // Emit to clients (in the given namespace's room) using Socket.IO log . replicants ( 'emitting %s to %s:' , eventName , namespace , data ) ; io . to ( ` ${ namespace } ` ) . emit ( eventName , data ) ; }
Emits an event to all remote Socket.IO listeners.
@param namespace {string} - The namespace in which to emit this event. Only applies to Socket.IO listeners.
@param eventName {string} - The name of the event to emit.
@param data {*} - The data to emit with the event.
Emits an event to all remote Socket . IO listeners .