Synchronized WebSocket and Protobuf to JSON serialization