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

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

WSock - WebSocket Mock

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