diff --git a/connectionmanager.js b/connectionmanager.js index 62a28bd..b8e686a 100644 --- a/connectionmanager.js +++ b/connectionmanager.js @@ -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();