admin管理员组文章数量:1401922
I want a simple socket connection, where the server should tell the client the total amount of connections (whenever a connection happens), and the client should update the DOM. I feel like socket.io or any other library is too full featured for such a simple reason. Any idea how to do this without libraries?
I want a simple socket connection, where the server should tell the client the total amount of connections (whenever a connection happens), and the client should update the DOM. I feel like socket.io or any other library is too full featured for such a simple reason. Any idea how to do this without libraries?
Share Improve this question asked Aug 21, 2016 at 17:05 Kabir ShahKabir Shah 3091 gold badge3 silver badges12 bronze badges1 Answer
Reset to default 9Node.js documentation shows a very good example how to municate using Sockets without libraries: https://nodejs/api/http.html#http_event_upgrade
Socket.io is not too 'full featured'. It's quite minimalistic and makes everything works with much less pain. I really remend you trying it.
本文标签: javascriptWhat is a simple way to use websockets in Nodejs WITHOUT a libraryStack Overflow
版权声明:本文标题:javascript - What is a simple way to use websockets in Node.js WITHOUT a library? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744323147a2600601.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论