class documentation
class WebSocketClientFactory(typing.Protocol[
A WebSocketClientFactory
is a factory for a particular kind of WebSocketProtocol
that implements client-side websocket listeners via WebSocketClientEndpoint
.
Method | build |
To conform to WebSocketServerFactory , you must implement a buildProtocol method which takes a string representing an URL and returns a WebSocketProtocol . |
To conform to WebSocketServerFactory
, you must implement a buildProtocol method which takes a string representing an URL and returns a WebSocketProtocol
.
Returns | |
_WSP | a WebSocketProtocol that will handle the outgoing connection. |