Package net.targetr.rc.client
package net.targetr.rc.client
Browser connections, JavaScript command delivery and browser-hosted file transfers.
ClientRequest parses the room, client and app
details of a connection. ClientWebSocketHandler
attaches the client to a room, receives commands for room routing and writes
outgoing JavaScript over the live WebSocket. Client
manages replacement connections and direct or queued command delivery, while
ClientCommand and
JavaScriptSnippets encode the browser protocol.
ClientFileProxy requests file data from a
connected browser and relays uploaded chunks into an HTTP download response.
The file-transfer classes support streaming and range requests without requiring
the shared file to be stored as a server-side resource. Room membership and
recipient selection are managed by Room.
- Author:
- Dr Michael Gardiner
-
ClassDescriptionRepresents a WebBrowser in a room.Handler invoked for direct, real-time command dispatch omitting the queue.Represents a command to send JavaScript to one or more clients.Indicates that a client command could not be parsed.Represents a small chunk of a file being proxied.Starts a binary response by connecting to another client.Builds a binary response by requesting chunks from another client.Identifies a browser connection and tracks its lifetime.Communicates with a client using a WebSocket.JavaScript snippets to help clients perform updates.Writes to multiple output streams in sequence, stopping at the first failure.