Class: WS

ExpWS.WS(hostopt) → {ClientWS}

The client EnonicXP web socket utility framework. The constructor will try to guess the protocol and host for the connection if the optional host parameter is not provided

Constructor

new WS(hostopt) → {ClientWS}

Parameters:
Name Type Attributes Description
host string <optional>

The web socket hostname

Since:
  • 0.0.1
Author:
  • Per Arne Drevland
Source:
Returns:

The new ClientWS instance

Type
ClientWS
Example
var cws = new ExpWS();