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