Socket.io protocol options
connection.socketOptions = { 'force new connection': true, // For SocketIO version < 1.0 'forceNew': true, // For SocketIO version >= 1.0 'transport': 'polling' // fixing transport:unknown issues };
connection.socketOptions.resource = 'custom'; connection.socketOptions.transport = 'polling'; connection.socketOptions['try multiple transports'] = false; connection.socketOptions.secure = true; connection.socketOptions.port = '9001'; connection.socketOptions['max reconnection attempts'] = 100; // etc.