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
-
ClassDescriptionReads and writes data frames to a WebSocket.A single data frame sent over a WebSocket.Interface for intercepting WebSocket frames.Performs the HTTP upgrade, reads text on a virtual thread and runs the writer on the response thread.