From 4a77f8eb54d84522f56ffc8b001c7a64f1b741b9 Mon Sep 17 00:00:00 2001 From: jfarcand Date: Mon, 19 Nov 2012 16:13:11 -0500 Subject: [PATCH] Fix for #737 --- modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js b/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js index fa1da1d8f5b..f50686c989b 100644 --- a/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js +++ b/modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js @@ -94,6 +94,7 @@ jQuery.atmosphere = function() { fallbackMethod: 'GET', fallbackTransport : 'streaming', transport : 'long-polling', + webSocketCreator: null, webSocketImpl: null, webSocketUrl: null, webSocketPathDelimiter: "@@", @@ -837,7 +838,9 @@ jQuery.atmosphere = function() { * @private */ function _getWebSocket(location) { - if (_request.webSocketImpl != null) { + if (_request.webSocketCreator != null) { + return _request.webSocketCreator(location); + } else if (_request.webSocketImpl != null) { return _request.webSocketImpl; } else { if (window.WebSocket) {