Due to a ransomware attack, the wiki was reverted to a July 2022 version. . We apologize for the lack of a more recent valid backup.
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.
Name | Summary |
---|---|
newWebSocket | Creates a new Javascript WebSocket. |
Function Description
newWebSocket
Creates a new Javascript WebSocket.
Example Usage | Arguments | Return Value |
---|---|---|
wsock.newWebSocket(url ); | url - url for the new WebSocket to connect to | the WebSocket object |