WSock - WebSocket

WSock is an Angular Factory in the Remote module with the name wsock.js. This service was added as a wrapper for creating WebSockets specifically so that they could be mocked during unit tests. To use this function, see the documentation on injecting Angular services.

newWebSocketCreates a new Javascript WebSocket.

Function Description


Creates a new Javascript WebSocket.

Example UsageArgumentsReturn Value
wsock.newWebSocket(url);url - url for the new WebSocket to connect tothe WebSocket object