Skip to content

ws

Object: jstp.ws

jstp.ws.connect(app, client, webSocketConfig, requestUrl, callback)

jstp.ws.connectAndInspect(app, client, interfaces, webSocketConfig, requestUrl, callback)

For more details see jstp.net.connectAndInspect().

jstp.ws.reconnect(connection, webSocketConfig, requestUrl, callback)

For more details see jstp.net.reconnect().

jstp.ws.createServer(options[, listener])

For additional options see documentation for WebSocketServer. Some of the options are not configurable, though, in particular httpServer, autoAcceptConnections, maxReceivedFrameSize, and maxReceivedMessageSize. However, beware, some of the other options may interfere with the correct functioning of the JSTP protocol.

For more details see jstp.net.createServer()