WsWindowServer:
Filter:
WsGUI/Classes (extension) | GUI > WsGUI | Extensions

WsWindowServer
ExtensionExtension

Interface to node.js-based WebSocket server for WsGUI framework

Description

WsWindowServer manages a node.js-based server for the WsGUI framework. Usually you don't need to use it directly, as WsWindow will start/stop instances of the WsWindowServer for you.

Requires node.js.

Class Methods

.new

Starts a new instance of the www/websocket server using node.js. Only one server can be active on a given port. Single server can server multiple WsWindows.

Arguments:

port

The port that the server listens on for web browser connections.

suppressPosting

If true, messages from the node.js server will not be posted in the post window.

onFailure

Optional function to be executed if WsWindowServer fails to start. Used by WsWindow to free resources in such case.

Examples