Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
web socket fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LukePulverenti committed Dec 17, 2015
1 parent 2b89c48 commit a454b78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connectionmanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -434,13 +434,13 @@
function afterConnected(apiClient, options) {

options = options || {};

if (options.reportCapabilities !== false) {
apiClient.reportCapabilities(capabilities);
}

if (options.enableWebSocket !== false) {
if (!apiClient.isWebSocketOpenOrConnecting && apiClient.isWebSocketSupported()) {
if (!apiClient.isWebSocketOpenOrConnecting() && apiClient.isWebSocketSupported()) {

console.log('calling apiClient.openWebSocket');

apiClient.openWebSocket();
Expand Down

0 comments on commit a454b78

Please sign in to comment.