mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-18 08:03:30 +02:00
Reverse port forwarding works, but changes don't apply to new devices yet.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
var io = require('socket.io')
|
||||
|
||||
module.exports = function SocketFactory() {
|
||||
module.exports = function SocketFactory($rootScope) {
|
||||
var socket = io.connect(null, {
|
||||
reconnect: false
|
||||
})
|
||||
@@ -26,5 +26,11 @@ module.exports = function SocketFactory() {
|
||||
}
|
||||
}
|
||||
|
||||
socket.on('socket.ip', function(ip) {
|
||||
$rootScope.$apply(function() {
|
||||
socket.ip = ip
|
||||
})
|
||||
})
|
||||
|
||||
return socket
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user