mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 16:13:24 +02:00
- Finally, most of the unit tests now passes (resolving dependencies also).
- Shims now exports angular module name, however some of them clash with the original.
This commit is contained in:
@@ -2,8 +2,11 @@ var io = require('socket.io')
|
||||
|
||||
module.exports = function SocketFactory($rootScope, VersionUpdateService) {
|
||||
/*globals APPSTATE:false*/
|
||||
//TODO: Refactor APPSTATE to AppStateConstant
|
||||
var websocketUrl = APPSTATE && APPSTATE.config &&
|
||||
APPSTATE.config.websocketUrl ? APPSTATE.config.websocketUrl : ''
|
||||
|
||||
var socket = io(APPSTATE.config.websocketUrl, {
|
||||
var socket = io(websocketUrl, {
|
||||
reconnection: false
|
||||
, transports: ['websocket']
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user