websockets.client
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. |
Module Contents
- async websockets.client.acknowledged(websocket: websockets.asyncio.client.ClientConnection) None [source]
Wait for an OK from the server.
- async websockets.client.register(websocket: websockets.asyncio.client.ClientConnection, schema: str, channel: str | None) None [source]
Registers for broadcast messages.
- async websockets.client.authenticate(websocket: websockets.asyncio.client.ClientConnection, token: str) None [source]
Authenticates with the given token.
- async websockets.client.broadcast(websocket: websockets.asyncio.client.ClientConnection, schema: str, channel: str | None, message: onegov.core.types.JSON_ro, groupids: list[str] | None = None) None [source]
Broadcasts the given message to all connected clients.
Optionally can be filtered to a list of groupids, for users with a lower privilege level like editors or members. admins will always receive all broadcasts in channels they’ve subscribed to.
Assumes prior authentication.