class documentation
class WebSocketServerFactory(typing.Protocol[
A WebSocketServerFactory
is a factory for a particular kind of WebSocketProtocol
that implements server-side websocket listeners via WebSocketResource
.
Method | build |
To conform to WebSocketServerFactory , you must implement a buildProtocol method which takes a Request and returns a WebSocketProtocol . |
To conform to WebSocketServerFactory
, you must implement a buildProtocol method which takes a Request
and returns a WebSocketProtocol
.
Returns | |
_WSP | a WebSocketProtocol that will handle the inbound connection. |