Class BusWebSocketEndpoint
BusWebSocketConfigurator.
It closes a refused handshake at once (4401 / 4403). Otherwise it adapts the
Session to a FrameSink, connects it to the ServerBus (which sends the resync), forwards
inbound text frames to ServerBus.receive(org.apache.juneau.console.bus.BusSession, java.lang.String) (which refuses anything but a pub frame with a JSON object
payload), and closes with 1009 (bus:frame-too-large) on a frame over
BusPolicy.maxFrameBytes. Nothing it logs contains the session id.
It reads the per-connection user properties of its EndpointConfig. The container gives each handshake its
own copy of that map (WebSocket 2.1 and later; Jetty and Tomcat do), which is what keeps concurrent connections apart.
Example:
- Since:
- 10.0.0
-
Method Summary
-
Method Details
-
onOpen
- Specified by:
onOpenin classjakarta.websocket.Endpoint
-
onClose
- Overrides:
onClosein classjakarta.websocket.Endpoint
-
onError
- Overrides:
onErrorin classjakarta.websocket.Endpoint
-