using System.ComponentModel;
using MediaBrowser.Model.Session;
namespace MediaBrowser.Controller.Net.WebSocketMessages.Outbound;
///
/// Force keep alive websocket messages. The data is the timeout in seconds after which the
/// server considers the connection lost; clients are expected to answer with a KeepAlive
/// message and to keep sending one at least every half of that timeout.
///
public class ForceKeepAliveMessage : OutboundWebSocketMessage
{
///
/// Initializes a new instance of the class.
///
/// The timeout in seconds.
public ForceKeepAliveMessage(int data)
: base(data)
{
}
///
[DefaultValue(SessionMessageType.ForceKeepAlive)]
public override SessionMessageType MessageType => SessionMessageType.ForceKeepAlive;
}