You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
804 B
25 lines
804 B
using System.Threading.Tasks;
|
|
|
|
namespace MediaBrowser.Controller.Net
|
|
{
|
|
/// <summary>
|
|
/// 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>
|
|
Task ProcessMessageAsync(WebSocketMessageInfo message);
|
|
|
|
/// <summary>
|
|
/// Processes a new web socket connection.
|
|
/// </summary>
|
|
/// <param name="connection">An instance of the <see cref="IWebSocketConnection"/> interface.</param>
|
|
/// <returns>Task.</returns>
|
|
Task ProcessWebSocketConnectedAsync(IWebSocketConnection connection);
|
|
}
|
|
}
|