added generic remote control commands

This commit is contained in:
Luke Pulverenti
2014-03-28 15:58:18 -04:00
parent 1dafb46b71
commit 57623886b2
16 changed files with 131 additions and 46 deletions

View File

@@ -198,5 +198,17 @@ namespace MediaBrowser.Server.Implementations.Session
}, cancellationToken);
}
public Task SendGenericCommand(GenericCommand command, CancellationToken cancellationToken)
{
var socket = GetActiveSocket();
return socket.SendAsync(new WebSocketMessage<GenericCommand>
{
MessageType = "Command",
Data = command
}, cancellationToken);
}
}
}