If token is invalid the following raw error appears in log at WebSocketClient.failHandshake (C:\Projects\IDEXX\CornerstoneCloud\infra\scripts\websocket-port-bridge\node_modules\hyco-websocket\node_modules\websocket\lib\WebSocketClient.js:339:32)
Expected Behavior
Should be able to handle this error in client code.
The issue is in HybridConnectionsWebSocketServer.js module (lines 258-260). Can we just add a line server.emit('error', event); in client.on('connectFailed'... event
Versions
OS platform and version: Microsoft Windows 8.1 Pro
Actual Behavior
If token is invalid the following raw error appears in log
at WebSocketClient.failHandshake (C:\Projects\IDEXX\CornerstoneCloud\infra\scripts\websocket-port-bridge\node_modules\hyco-websocket\node_modules\websocket\lib\WebSocketClient.js:339:32)
Expected Behavior
Should be able to handle this error in client code. The issue is in
HybridConnectionsWebSocketServer.js
module (lines 258-260). Can we just add a lineserver.emit('error', event);
inclient.on('connectFailed'...
eventVersions