websockets.client
¶
Module Contents¶
Functions¶
|
Wait for an OK from the server. |
|
Registers for broadcast messages. |
|
Authenticates with the given token. |
|
Broadcasts the given message to all connected clients. |
|
Receives the status of the server. |
- async websockets.client.acknowledged(websocket: websockets.legacy.client.WebSocketClientProtocol) None [source]¶
Wait for an OK from the server.
- async websockets.client.register(websocket: websockets.legacy.client.WebSocketClientProtocol, schema: str, channel: str | None) None [source]¶
Registers for broadcast messages.
- async websockets.client.authenticate(websocket: websockets.legacy.client.WebSocketClientProtocol, token: str) None [source]¶
Authenticates with the given token.