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:
parent
a4a1cd89f0
commit
796cdf94b6
2 changed files with 5 additions and 2 deletions
|
@ -41,6 +41,7 @@ module.exports = function(options) {
|
||||||
|
|
||||||
io.set('log level', 1)
|
io.set('log level', 1)
|
||||||
io.set('browser client', false)
|
io.set('browser client', false)
|
||||||
|
io.set('transports', ['websocket'])
|
||||||
|
|
||||||
app.use('/static/bower_components',
|
app.use('/static/bower_components',
|
||||||
express.static(pathutil.resource('bower_components')))
|
express.static(pathutil.resource('bower_components')))
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
var io = require('socket.io')
|
var io = require('socket.io')
|
||||||
|
|
||||||
module.exports = function SocketFactory($rootScope) {
|
module.exports = function SocketFactory() {
|
||||||
var socket = io.connect()
|
var socket = io.connect(null, {
|
||||||
|
reconnect: false
|
||||||
|
})
|
||||||
|
|
||||||
socket.scoped = function($scope) {
|
socket.scoped = function($scope) {
|
||||||
var listeners = []
|
var listeners = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue