Backend API. Server-side code: this runs in a Codename One backend, not in the app on the device.

public 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.

Methods

public abstract WebSocket open(HttpServer.Request request) throws Exception

Method details

open

public abstract WebSocket open(HttpServer.Request request) throws Exception

Throws

Exception