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.
31 lines
699 B
31 lines
699 B
using System;
|
|
|
|
namespace CoreAgent.WebSocketTransport.Models
|
|
{
|
|
/// <summary>
|
|
/// 心跳消息实体模型
|
|
/// </summary>
|
|
public class HeartbeatMessage
|
|
{
|
|
/// <summary>
|
|
/// 消息类型
|
|
/// </summary>
|
|
public string Type { get; set; } = "heartbeat";
|
|
|
|
/// <summary>
|
|
/// 消息载荷
|
|
/// </summary>
|
|
public HeartbeatPayload Payload { get; set; } = new HeartbeatPayload();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 心跳消息载荷
|
|
/// </summary>
|
|
public class HeartbeatPayload
|
|
{
|
|
/// <summary>
|
|
/// 心跳消息内容
|
|
/// </summary>
|
|
public string Message { get; set; } = "ping";
|
|
}
|
|
}
|