Package net.targetr.wtm3.net.http.websocket


package net.targetr.wtm3.net.http.websocket
WebSocket upgrades, frame transport and connection lifecycle handling.

WebSocketResponse performs the HTTP upgrade and runs incoming text callbacks on a virtual thread while the response thread writes outgoing data. Subclasses supply the message handling, writer loop and closure cleanup used by browser communications and monitoring.

WebSocket reads and writes frames, handles control frames and coordinates transport closure. WebSocketFrame represents individual frames backed by reusable buffers, and WebSocketFrameInterceptor exposes incoming and outgoing frames to monitoring. Room routing and the JavaScript command protocol are implemented in net.targetr.rc.client.

Author:
Dr Michael Gardiner