added ability to track web sockets per session

This commit is contained in:
Luke Pulverenti
2013-05-09 13:38:02 -04:00
parent f57cec4cff
commit e1f8c18b51
23 changed files with 664 additions and 401 deletions

View File

@@ -159,6 +159,9 @@ MediaBrowser.ApiClient = function ($, navigator, JSON, WebSocket, setTimeout) {
webSocket.onopen = function () {
setTimeout(function () {
self.sendWebSocketMessage("Identify", deviceId + "|" + clientName);
$(self).trigger("websocketopen");
}, 500);
};