Interface HttpServer.WebSocketHandler

Enclosing class:
HttpServer

public static interface HttpServer.WebSocketHandler

Chooses the websocket endpoint for an upgrade request, or null when this router does not serve that path.

The same "null means not mine" the Handler chain uses, so a generated router can answer for the routes it knows and leave the rest alone.

A router that wants a refusal other than 404 returns HttpServer.refuseUpgrade(int, String) instead of null: the handshake is then answered with that response.