1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 19:42:01 +02:00

Only use websocket transport. Currently we cannot guarantee state integrity on reconnect, so let's disable it for now.

This commit is contained in:
Simo Kinnunen 2014-03-26 14:08:41 +09:00
parent a4a1cd89f0
commit 796cdf94b6
2 changed files with 5 additions and 2 deletions

View file

@ -41,6 +41,7 @@ module.exports = function(options) {
io.set('log level', 1)
io.set('browser client', false)
io.set('transports', ['websocket'])
app.use('/static/bower_components',
express.static(pathutil.resource('bower_components')))

View file

@ -1,7 +1,9 @@
var io = require('socket.io')
module.exports = function SocketFactory($rootScope) {
var socket = io.connect()
module.exports = function SocketFactory() {
var socket = io.connect(null, {
reconnect: false
})
socket.scoped = function($scope) {
var listeners = []