When using the latest code, the following error is reported:
TypeError: Cannot read property 'createWebSocketBackend' of undefined
at NGWebSocket._connect ...
Upon inspection, it became clear that the ngWebSocketBackend service was not being injected into the function factory. Changing the function factory line to the following fixes the error:
factory('ngWebSocket', ['ngWebSocketBackend', function(ngWebSocketBackend) {
When using the latest code, the following error is reported:
TypeError: Cannot read property 'createWebSocketBackend' of undefined at NGWebSocket._connect ...
Upon inspection, it became clear that the ngWebSocketBackend service was not being injected into the function factory. Changing the function factory line to the following fixes the error: factory('ngWebSocket', ['ngWebSocketBackend', function(ngWebSocketBackend) {