Commit 2a9b4b2e authored by konovalovsergey's avatar konovalovsergey

transports WebSocket, XHR / JSONP polling

parent 9a8b9905
......@@ -1216,7 +1216,9 @@
DocsCoApi.prototype._initSocksJs = function() {
var t = this;
var sockjs = this.sockjs = new (this._getSockJs())(this.sockjs_url, null, {debug: true});
//ограничиваем transports WebSocket и XHR / JSONP polling, как и engine.io https://github.com/socketio/engine.io
//при переборе streaming transports у клиента с wirewall происходило зацикливание(не повторялось в версии sock.js 0.3.4)
var sockjs = this.sockjs = new (this._getSockJs())(this.sockjs_url, null, {transports: ['websocket', 'xdr-polling', 'xhr-polling', 'iframe-xhr-polling', 'jsonp-polling']});
sockjs.onopen = function() {
if (t.reconnectTimeout) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment