Page tree

Have questions? Stuck? Please check our FAQ for some common questions and answers.

Skip to end of metadata
Go to start of metadata

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.

NameSummary
newWebSocketCreates a new Javascript WebSocket.

Function Description

newWebSocket

Creates a new Javascript WebSocket.

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