WebSocket教程4:套接字上的Hello World!



通过代码向网络套接字发送您的第一个问候。

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

7 comments
  1. i ran the exact same thing and this doesnt show anything in console not even the alert. but it does when the alert is outside the function below the WebSocket connectivity

  2. Hello, thanks for the tutorial ! I have a question, why is the message "Hey there" looks like it has been sent twice, with 300ms between the two messages, at 2:55 ?

  3. Hi, in my browser (Chrome), under Networks (WS tab) once the socket is connected and a message is sent, it doesn't show anything under the Frames tab. Please help me with this.

Comments are closed.