using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NEIntelligentControl2.Service.WebSocket
{
    /// <summary>
    /// 订阅数据接口
    /// </summary>
    public interface IMessage
    {
        /// <summary>
        /// 要订阅的消息类型消息类型
        /// </summary>
        List<string> MessageTypes { get; set; }

        /// <summary>
        /// 获得消息
        /// </summary>
        Task OnMessage(object message);
    }
}
