public void sendAllChats(User u)
        { //Send only last 20
            int start = 0;

            // if (chats.length > 20) {
            //   start = chats.length - 20;
            // }
            for (int i = start; i < chats.Count; i++)
            {
                u.sendBinary(ServerMessages.ChatMessage(chats[i]));
            }
        }
 public void addChat(User u, String chat)
 {
     chat = $"{u.account.name}: " + chat;
     chats.Add(chat);
     //Send chat to all connected websockets
     byte[] chatMsg = ServerMessages.ChatMessage(chat);
     for (int i = 0; i < server.GetNetworking().users.Count; i++)
     {
         User u2 = server.GetNetworking().users[i];
         u2.sendBinary(chatMsg);
     }
 }