Commit 95d0b08f authored by konovalovsergey's avatar konovalovsergey

transports WebSocket and XHR / JSONP polling like in docscoapi.js

parent 9990f28f
......@@ -173,7 +173,9 @@
var reconnectTimeout, attemptCount = 0;
function initSocksJs(url, docsCoApi) {
var sockjs = new (_getSockJs())(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 = new (_getSockJs())(url, null, {transports: ['websocket', 'xdr-polling', 'xhr-polling', 'iframe-xhr-polling', 'jsonp-polling']});
sockjs.onopen = function() {
if (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