NAME

PAGI::Context::WebSocket - WebSocket-specific context subclass

DESCRIPTION

Returned by PAGI::Context->new(...) when $scope->{type} is 'websocket'. Adds a lazy accessor for PAGI::WebSocket.

Inherits all shared methods from PAGI::Context.

METHODS

websocket

my $ws = $ctx->websocket;

Returns a PAGI::WebSocket instance. Lazy-constructed and cached.

ws

my $ws = $ctx->ws;

Alias for websocket.

SEE ALSO

PAGI::Context, PAGI::WebSocket