Пример #1
0
        public async Task CreateRoom()
        {
            string roomCode = GlobalData.CreateRoom(Context.ConnectionId);
            await Groups.AddToGroupAsync(Context.ConnectionId, roomCode);

            await Clients.Caller.SendAsync("Load:GM", roomCode, Context.ConnectionId);
        }