Go to the latest version of this document.

# ``twisted`.`web`.`_websocket_impl``

module documentation
(source)

Private implementation module for public `twisted.web.websocket`.

Function | `serverBootstrap` | The server requires no bootstrapping, so this is a no-op.
Variable | `AnyWSWP` | Undocumented
Class | `_WebSocketWireProtocol` | Undocumented
Function | `_handle_acceptConnection` | Undocumented
Function | `_handle_bytesMessage` | Undocumented
Function | `_handle_closeConnection` | Undocumented
Function | `_handle_ping` | Undocumented
Function | `_handle_pong` | Undocumented
Function | `_handle_rejectConnection` | Undocumented
Function | `_handle_rejectData` | Undocumented
Function | `_handle_textMessage` | Undocumented
Function | `_handleEvent` | Handle a websocket protocol event.
Function | `_negotiationError` | Undocumented
Type Variable | `_WSP` | Undocumented
Type Alias | `_Bootstrap` | Undocumented
Variable | `_log` | Undocumented

def serverBootstrap(wsc: `WSConnection | Connection`, t: `ITransport`): (source)

The server requires no bootstrapping, so this is a no-op.

AnyWSWP = (source)

Undocumented

@_handleEvent.register
def _handle_acceptConnection(event: `AcceptConnection`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_bytesMessage(event: `BytesMessage`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_closeConnection(event: `CloseConnection`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_ping(event: `Ping`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_pong(event: `Pong`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_rejectConnection(event: `RejectConnection`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_rejectData(event: `RejectData`, proto: `AnyWSWP`): (source)

Undocumented

@_handleEvent.register
def _handle_textMessage(event: `TextMessage`, proto: `AnyWSWP`): (source)

Undocumented

@singledispatch
def _handleEvent(event: `Event`, proto: `AnyWSWP`): (source)

Handle a websocket protocol event.

def _negotiationError(request: `Request`) -> `bytes`: (source)

Undocumented

_WSP = (source)

Undocumented

Value

    TypeVar('_WSP',
            covariant=True, bound=WebSocketProtocol)

_Bootstrap = (source)

Undocumented

Value

    Callable[[(WSConnection | Connection), ITransport], None]

_log = (source)

Undocumented