Nexus API Reference

CompiledWsApplication
in package
implements CompiledApplication

Read onlyYes
FinalYes
Tags
psalm-api

Table of Contents

Interfaces

CompiledApplication

Methods

__construct()  : mixed
container()  : ContainerInterface
dispatcher()  : WebSocketDispatcher
handle()  : ResponseInterface
handshakeGate()  : HandshakeGate
The pre-upgrade authorization gate servers must consult before completing the WebSocket handshake. Applications compiled without an explicit gate get a middleware-free gate over the same router: unmatched paths are still rejected with 404 before the 101 switch.
hasWebSocketRoutes()  : bool
webSocketRouter()  : WebSocketRouter

Methods

handle()

public handle(ServerRequestInterface $request) : ResponseInterface
Parameters
$request : ServerRequestInterface
Attributes
#[Override]
Return values
ResponseInterface

handshakeGate()

The pre-upgrade authorization gate servers must consult before completing the WebSocket handshake. Applications compiled without an explicit gate get a middleware-free gate over the same router: unmatched paths are still rejected with 404 before the 101 switch.

public handshakeGate() : HandshakeGate
Return values
HandshakeGate

hasWebSocketRoutes()

public hasWebSocketRoutes() : bool
Attributes
#[Override]
Return values
bool
On this page

Search results