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

@@ -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 = []