1
yangpeixing
4 天以前 53142c9c632d95dd0817bf2406f56fa0f6907d40
1
2
3
4
5
6
7
8
9
10
11
12
13
using Microsoft.AspNetCore.SignalR;
 
namespace WIDESEA_Model
{
    public class WMSNoticeHub : Hub
    {
        // 前端监听这个方法就能收到消息
        public async Task SendMessage(string message)
        {
            await Clients.All.SendAsync("ReceiveMessage", message);
        }
    }
}