NY_WebSocketPlugIn

RemoteSkin for web uses a WebSocket connection to communicate with JavaScript in the browser. Each application operates its own dedicated WebSocket connection.

Messages from the node network are translated into JSON events and sent to the browser via the WebSocket connection. Conversely, events from the webpage are sent from the browser as JSON events to the WebSocket server. These events are then converted into messages and forwarded to interested targets within the node network.

The messages understood by the WebSocket server are defined in the RemoteSkin Web Protocol API. This API is extensible by the user. JavaScript can easily be extended with additional messages, and the API provides two generic messages to facilitate such extensions.

See also: