Add publish function from client
Streamline sockJS event format