Пример #1
0
 public static void PacketHandler(Type header, Client sender, dynamic msg)
 {
     _actions[header].Invoke(msg);
 }
Пример #2
0
 public Drawing(Stream imageStream, Client drawer)
 {
     _drawer = drawer;
     _image = imageStream;
 }
Пример #3
0
 public static void SendPing(Client client)
 {
 }
Пример #4
0
 public static void SendMessage(string msg, Client receiver)
 {
     receiver.WebSocketSession.Send(msg);
 }
Пример #5
0
 public static void SendData(byte[] data, Client receiver)
 {
     receiver.WebSocketSession.Send(data, 0, data.Length);
 }
Пример #6
0
 public Lobby(int lobbyID, Client hostClient)
 {
     _clients = new List<Client>();
     _clients.Add(hostClient);
     _hostClient = hostClient;
 }