public async void GetAsync(int id) { try { await WebSocketXX.SendAsyncAll(new { Message = "成功!" }); } catch (Exception e) { } }
public async void Post([FromBody] string value) { await WebSocketXX.SendAsyncAll(new { Message = "成功!" }); }