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.
32 lines
732 B
32 lines
732 B
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace CoreAgent.WebSocketTransport.Models
|
|
{
|
|
partial class ProtocolMessage
|
|
{
|
|
/// <summary>
|
|
/// 消息类型
|
|
/// </summary>
|
|
public string Type { get; set; } = "Protocol";
|
|
|
|
/// <summary>
|
|
/// 消息载荷
|
|
/// </summary>
|
|
public HeartbeatPayload Payload { get; set; } = new HeartbeatPayload();
|
|
}
|
|
|
|
/// <summary>
|
|
/// 心跳消息载荷
|
|
/// </summary>
|
|
public class ProtocolPayload
|
|
{
|
|
/// <summary>
|
|
/// 心跳消息内容
|
|
/// </summary>
|
|
public string Message { get; set; } = "ping";
|
|
}
|
|
}
|
|
|