Skip to content

Commit

Permalink
Fix for #737
Browse files Browse the repository at this point in the history
  • Loading branch information
jfarcand committed Nov 19, 2012
1 parent e67f209 commit 4a77f8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/jquery/src/main/webapp/jquery/jquery.atmosphere.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ jQuery.atmosphere = function() {
fallbackMethod: 'GET',
fallbackTransport : 'streaming',
transport : 'long-polling',
webSocketCreator: null,
webSocketImpl: null,
webSocketUrl: null,
webSocketPathDelimiter: "@@",
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 4a77f8e

Please sign in to comment.