2019-01-13 20:01:16 +00:00
|
|
|
using System.Threading.Tasks;
|
2018-12-27 23:27:57 +00:00
|
|
|
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
///This is an interface for listening to messages coming through a web socket connection
|
|
|
|
/// </summary>
|
|
|
|
public interface IWebSocketListener
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// Processes the message.
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="message">The message.</param>
|
|
|
|
/// <returns>Task.</returns>
|
2019-02-24 02:16:19 +00:00
|
|
|
Task ProcessMessageAsync(WebSocketMessageInfo message);
|
2018-12-27 23:27:57 +00:00
|
|
|
}
|
|
|
|
}
|