我为我的游戏社区搭建了一个小型实时聊天系统,原本以为是周末的事。 WebSocket 部分没问题,都是那些乏味的东西困扰了我,例如在线状态、重新连接时消息顺序、速率限制、基本的管理工具。 Anyone who tells you chat is a solved problem has never had to handle a user with bad wifi spamming the same message 40 times.