Add MessageId to websocket message, add JsonNonStringKeyDictionaryConverter

This commit is contained in:
crobibero
2020-06-11 10:51:47 -06:00
parent 55610f8359
commit 30609c848b
5 changed files with 146 additions and 4 deletions

View File

@@ -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 />