Configurable websocket protocol