fixed web socket check-ins

This commit is contained in:
Luke Pulverenti
2013-05-11 12:41:50 -04:00
parent 369107bab8
commit a1b45e9890
3 changed files with 28 additions and 14 deletions

View File

@@ -98,12 +98,15 @@ namespace MediaBrowser.Api
throw new ResourceNotFoundException(string.Format("Session {0} not found.", request.Id));
}
session.WebSocket.SendAsync(new WebSocketMessage<BrowseTo>
foreach (var socket in session.WebSockets)
{
MessageType = "Browse",
Data = request
socket.SendAsync(new WebSocketMessage<BrowseTo>
{
MessageType = "Browse",
Data = request
}, CancellationToken.None);
}, CancellationToken.None);
}
}
}
}