WebSocket¶
httpkom.ws
¶
WebSocketConnection
¶
ws_new()
async
¶
Open a WebSocket connection for sending raw protocol A requests.
Note: This endpoint is registered directly on the app, not the
blueprint, so it does not have the /<server_id>/ prefix.
The connection id is passed as a query parameter:
Messages are JSON objects with the following format:
Request:
Reply:
The echo protocol can be used for testing -- it echoes back the
request as the reply.