在本视频中,我们将学习如何使用Socket.io和Node.JS设置Web套接字在客户端和服务器之间进行通信。
我们将在DigitalOcean提供的实时VPS服务器上托管套接字,以便我们的项目可以从全球Internet上进行。
转到https://howcode.org了解更多!
链接到DigitalOcean:http://howco.de/d_ocean
链接到howCode Facebook:http://howco.de/fb
链接到howCode Twitter:http://howco.de/twitter
链接到/r/howCode:http://howco.de/reddit
别忘了订阅更多! 。
speak faster
Thank you very much. You helped a lot 🙂
Ten points Gryffindor for using nano.
Is this possible without a DigitalOcean server (and not host if off my computer)
to "broadcast" with socket.io the usage of io.sockets.emit will just send a packet to all the clients, it's not really a broadcast. To send to all clients except the sender, use socket.broadcast.emit('message', "this is a test");
excuse
have you finished with the new social network series or its remaining????
this is not scratch
this video have no voice my friend !!!!!????
Definitely this is not "from scratch", but yeah cool video
OMG Thats so wierd i have been saying i wish he did socket.io because i really wanna learn that. If this is a series then bang thank you for that.
How is that "from scratch" if you are using a framework?