在本視頻中,我們將學習如何使用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?