Merge pull request #3315 from crobibero/dashboard-update

Add MessageId to websocket message, fix ws exception
This commit is contained in:
dkanada
2020-06-15 10:55:33 +09:00
committed by GitHub
5 changed files with 149 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 />