Readonlyaccept: trueComplete the handshake.
Optional Readonlyprotocol?: stringThe negotiated subprotocol to echo back, when one was selected. Omit to echo none — never echo a protocol the client did not request.
Readonlysink: WebSocketEventSinkThe sink the adapter binds its native socket events into.
Readonlyaccept: falseRefuse the handshake.
Readonlystatus: numberThe HTTP status to answer with (e.g. 503 at capacity, 400 on a bad subprotocol).
What an HTTP adapter should do with an inbound upgrade request, as decided by the
WebSocketUpgradeRouter.Discriminated on
accept, so an adapter narrows with a single check.