class HandshakeHandler

Methods

__construct(Container $container)

No description

Response
handleHandshake(Request $request)

Build the WebSocket handshake response for a matched route.

Details

at line 14
__construct(Container $container)

No description

Parameters

Container $container

at line 27
Response handleHandshake(Request $request)

Build the WebSocket handshake response for a matched route.

Validates that the matched route's controller class exists (it will be used as the WS handler for subsequent onMessage/onClose callbacks), then builds the 101 Switching Protocols response with the required WebSocket headers.

Parameters

Request $request

Return Value

Response