add full JSON roundtrip to WebSocket example