WebSockets教程8:多个客户端



了解多个客户端如何在WebSockets上工作以及nodejs ws如何处理它们。

完整的播放列表网址:https://www.youtube.com/playlist?list=PLYxzS__5yYQQRizvwNYWwzFjd9J4ni_Ga。

8 comments
  1. Whenever I close the tab with index.html I get the following error. Please help if possible!
    events.js:183
    throw er; // Unhandled 'error' event
    ^

    Error: read ECONNRESET
    at _errnoException (util.js:1022:11)
    at TCP.onread (net.js:615:25)

    c:projectswebsocketsserver>node index.js
    Received: 123
    events.js:183
    throw er; // Unhandled 'error' event
    ^

    Error: read ECONNRESET
    at _errnoException (util.js:1022:11)
    at TCP.onread (net.js:615:25)

  2. what if u hit the send button simultaneously … on multiple clients at the same time… will the message be sent to the right client… i hope u get my question….

Comments are closed.