英文:
How to create golang web socket chat?
问题
下午好。如何使用Golang创建一个WebSocket聊天应用,使其能够向选定的用户发送消息,而不是所有用户?
英文:
Good afternoon.
How to create a golang web socket chat with the ability to send messages to the selected user, and not all?
答案1
得分: 6
请参考这个示例GO聊天应用程序:
http://gary.burd.info/go-websocket-chat
我去年测试过,效果很好。你可以查看代码来了解它的工作原理。
英文:
Refer to this example GO chat application:
http://gary.burd.info/go-websocket-chat
I tested this out last year and it worked well. You can look at the code to see how it works.
答案2
得分: 0
另一个很好的例子是这个:https://github.com/arschles/go-in-5-minutes/tree/master/episode4
这个源代码有一个配套的教程视频:https://www.youtube.com/watch?v=DJiOrGRsIKo
英文:
Another great example is this: https://github.com/arschles/go-in-5-minutes/tree/master/episode4
There is a tutorial video that goes along with this source code: https://www.youtube.com/watch?v=DJiOrGRsIKo
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论