예제 #1
0
 public async Task SendDraw(RecModel model)
 {
     if (model.type == "clearBoard")
     {
         await _drawService.ClearModels();
     }
     else
     {
         await _drawService.AddToModels(model);
     }
     await Clients.AllExcept(Context.ConnectionId).SendAsync("ReceiveDraw", model);
 }