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