class documentation
class WebSocketTransport(typing.Protocol): (source)
The transport that can send websocket messages.
Method | attach |
Attach the given IPushProducer to this transport. |
Method | detach |
Detach a previously attached IPushProducer from this transport. |
Method | lose |
Drop the websocket connection. |
Method | ping |
Send a websocket Ping request to measure latency. |
Method | send |
Send a bytes message. |
Method | send |
Send a text message. |
Send a websocket Ping request to measure latency.
Note | |
Per Mozilla's documentation, multiple 'ping' requests may be coalesced into a single 'pong', and unsolicited 'pong' requests must be ignored, so we do not return a deferred here; pongs are delivered separately. |