module documentation
Private implementation module for public twisted.web.websocket.
| Class | |
Undocumented |
| Class | |
The properties we rely on from the wsproto text and bytes message types. |
| Function | maybe |
If it is complete, deliver the given event to the given ...Received() method. |
| Function | server |
The server requires no bootstrapping, so this is a no-op. |
| Type Variable | |
Undocumented |
| Type Variable | |
Undocumented |
| Variable | |
Undocumented |
| Class | _ |
Undocumented |
| Function | _handle_accept |
Undocumented |
| Function | _handle_bytes |
Undocumented |
| Function | _handle_close |
Undocumented |
| Function | _handle |
Undocumented |
| Function | _handle |
Undocumented |
| Function | _handle_reject |
Undocumented |
| Function | _handle_reject |
Undocumented |
| Function | _handle_text |
Undocumented |
| Function | _handle |
Handle a websocket protocol event. |
| Function | _negotiation |
Undocumented |
| Type Variable | _WSP |
Undocumented |
| Type Alias | _ |
Undocumented |
| Variable | _log |
Undocumented |
def maybeDeliver(event:
SomeMessage[ SomeStr], buffer: Buffer[ SomeStr], receivedMethod: Callable[ [ SomeStr], None]):
(source)
¶
If it is complete, deliver the given event to the given ...Received() method.
This re-assembles messages from buffered data because, as wsproto explains, "[a websocket event] only represents a single chunk of data and not a full WebSocket message. You need to buffer and reassemble these chunks to get the full message."
@_handleEvent.register
def _handle_acceptConnection(event: AcceptConnection, proto: AnyWSWP):
(source)
¶
Undocumented
@_handleEvent.register
def _handle_closeConnection(event: CloseConnection, proto: AnyWSWP):
(source)
¶
Undocumented
@_handleEvent.register
def _handle_rejectConnection(event: RejectConnection, proto: AnyWSWP):
(source)
¶
Undocumented