mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
added ability to track web sockets per session
This commit is contained in:
parent
9fa986c511
commit
f4eb8f6cdd
4 changed files with 7 additions and 13 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue