If you need to emit events to socket.io instances from a non-socket.io process, you should use socket.io-emitter.