update components

This commit is contained in:
Luke Pulverenti 2016-04-08 23:08:50 -04:00
parent d9299a0a48
commit 101944aab9
36 changed files with 240 additions and 66 deletions

View file

@ -526,6 +526,14 @@
}
};
self.ensureWebSocket = function() {
if (self.isWebSocketOpenOrConnecting() || !self.isWebSocketSupported()) {
return;
}
self.openWebSocket();
};
self.openWebSocket = function () {
var accessToken = self.accessToken();
@ -555,9 +563,7 @@
}, 0);
};
webSocket.onerror = function () {
setTimeout(function () {
Events.trigger(self, 'websocketerror');
}, 0);
Events.trigger(self, 'websocketerror');
};
webSocket.onclose = function () {
setTimeout(function () {