在5分鐘內學習HTML5網路套接字



在5分鐘內,學習將HTML5 websocket包含在您的網站中。 。

16 comments
  1. Bro, you wait until the end of the video to display the terminal…I want to make the web-sockets run without a terminal…

  2. Great clear video. I have always known this to be a simple process but i end up writing much more than you illustrated, thanks for shortening it up, i last created a page which used ws about 8 years ago and was crowded by php. .. subscribed!!

  3. Hey, what is your server.js file to run the server on node. Did you execute two command in the terminal: first – node server.js and then node server_websocket.js . I tried to do that and I am getting error message when executing node server_websocket.js

  4. I have run the command :
    /var/www/html/html5_websocket$ nodejs server_websocket.js
    ok, server is running

    however, I still get the error :
    WebSocket connection to 'ws://localhost:8085/echo' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED

    Is there something else I can check to figure out what's wrong?

Comments are closed.