After receiving a token, as described here, a websocket connection can be established with the application server with the following code:
var webSocket = null
webSocket = new WebSocket("ws://localhost:8080/client/1.0/connectorAsync/" + [ConnectorName] + "?SimplifierToken=" + [Token]);
This parameter represents the connector, that the websocket connection will be established to.
The generated token object.