Take events from a socket.io-client, builds a message, and publishes it.