aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-06 13:53:23 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-04-06 13:53:23 -0400
commitc60103df64104459883f1244363cc9cd39187545 (patch)
tree9c2d90fb6b59905a265ffd3f10a036d3e50ce487 /MediaBrowser.Server.Implementations/Session/WebSocketController.cs
parent241c43e9a1f9ad2fbc940626f9c85c469402bc55 (diff)
chromecast updates
Diffstat (limited to 'MediaBrowser.Server.Implementations/Session/WebSocketController.cs')
-rw-r--r--MediaBrowser.Server.Implementations/Session/WebSocketController.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/MediaBrowser.Server.Implementations/Session/WebSocketController.cs b/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
index 3bb84fa0e..17a3594d8 100644
--- a/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
+++ b/MediaBrowser.Server.Implementations/Session/WebSocketController.cs
@@ -198,5 +198,17 @@ namespace MediaBrowser.Server.Implementations.Session
}, cancellationToken);
}
+
+ public Task SendSessionEndedNotification(SessionInfoDto sessionInfo, CancellationToken cancellationToken)
+ {
+ var socket = GetActiveSocket();
+
+ return socket.SendAsync(new WebSocketMessage<SessionInfoDto>
+ {
+ MessageType = "SessionEnded",
+ Data = sessionInfo
+
+ }, cancellationToken);
+ }
}
}