You have to use the WebSocket plugin to send messages after establishing a connection to their websocket server.
Then you simply push messages in the appropriate JSON format. You can use different plugins on C2 to build JSON, like Dictionary, rex Hash, rex JSON builder, etc.