带有Socket.IO的Golang Websockets教程



●订阅即可观看更多我的视频,并点击该“赞”按钮以支持该频道!

各位程序员,您好!在本教程中,我们将研究如何使用Go中的Websockets开始构建一个非常简单的实时聊天应用程序。

我们将在Websockets周围使用流行的socket.io包装器,以使自己轻松实现涉及围绕该服务的前端。

如果您有任何问题,建议或意见,请在下面告诉我!

文字教学:https://tutorialedge.net/golang/golang-websockets-tutorial/
Visual Studio程式码:https://code.visualstudio.com/

●我的Twitter►⁦‪https://twitter.com/Elliot_f
●我的网站►https://tutorialedge.net。

14 comments
  1. All of your content is top-notch, both on your blog and here on YouTube. Thank you for sharing so much valuable knowledge with the world 🙂

  2. Why to use so huge dependency and bad reputation like Socket.IO instead of using vanilla WebSockets in client side? Just to handle downgrades and all possible edge cases which probably i don't need to handle? It feels like case where 99,9% tutorials advice to bring in jQuery bloatware to make simple DOM manipulation. And at the end, juniors should be educated one more time to work without jQuery.
    Anyway, tnx for making Go content. Looking for vanilla implementations + Protocol Buffers (gRPC).

  3. Not sure if you used go-micro, but if you have, how would I implement that so I can have my websocket handle rpc calls?

  4. Try to move away your asset server then connect on the websocket. This fucking library is shitty. You can't use CORS properly it just won't work.

Comments are closed.