diff options
| author | crobibero <cody@robibe.ro> | 2020-06-11 10:51:47 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-06-11 10:51:47 -0600 |
| commit | 30609c848bdab2a93a44b8fc8d2bd58042ab795b (patch) | |
| tree | 0ce6ec6436c27bca60c1bb63fb804193683e151c /Emby.Server.Implementations/HttpServer/WebSocketConnection.cs | |
| parent | 55610f83597e668854e6022cd9d3a60d14cb0623 (diff) | |
Add MessageId to websocket message, add JsonNonStringKeyDictionaryConverter
Diffstat (limited to 'Emby.Server.Implementations/HttpServer/WebSocketConnection.cs')
| -rw-r--r-- | Emby.Server.Implementations/HttpServer/WebSocketConnection.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs index 0680c5ffe..0e2a0a3d3 100644 --- a/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs +++ b/Emby.Server.Implementations/HttpServer/WebSocketConnection.cs @@ -234,10 +234,12 @@ namespace Emby.Server.Implementations.HttpServer private Task SendKeepAliveResponse() { LastKeepAliveDate = DateTime.UtcNow; - return SendAsync(new WebSocketMessage<string> - { - MessageType = "KeepAlive" - }, CancellationToken.None); + return SendAsync( + new WebSocketMessage<string> + { + MessageId = Guid.NewGuid(), + MessageType = "KeepAlive" + }, CancellationToken.None); } /// <inheritdoc /> |
