Strongly coupling Json with WebSockets feels wrong.