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