In less than 20 lines of code (actually, there are only eight that are doing anything), you have built a functional chat server. Here is the flow of this simple program.
在不到20行代码中(实际上,真正实现功能的代码只有8行),您已经构建了一个能够使用的聊天服务器。
In addition, room owners can now also pass control of a room on to other users - a feature that is quite useful when you have to leave, but want the chat to continue.
另外房间主人现在可以将房间的控制权转交给其他用户——当你有事要离开,但是又希望聊天继续的时候,这功能就显得尤其实用。
By highlighting a person's name in the chat history window, you see a list of all recent chats that you have had with that person.
通过在聊天历史窗口中突出显示人的名称,可以看到与您聊天的人的所有最近聊天记录的列表。
应用推荐