8 Comments on “In 5 minutes learn HTML5 websockets”
please make a tutorial the socket server in php….. please
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!!
Perfect…. thanks
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
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?
Hello Gaur, congratulations for his video lesson, I copied your code, but the conection it's refused, why is happen this? As i start the server "server_websocket.js"? Thanks very much.
why u used echo in first line of websocket.js file ?
good tutorial 🙂 ..btw what is ws lib? how to setup protocol of ws://localhost:8080? is it from apache or something?
Comments are closed.
By continuing to browse the site you are agreeing to our use of cookies
please make a tutorial the socket server in php….. please
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!!
Perfect…. thanks
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
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?
Hello Gaur, congratulations for his video lesson, I copied your code, but the conection it's refused, why is happen this? As i start the server "server_websocket.js"? Thanks very much.
why u used echo in first line of websocket.js file ?
good tutorial 🙂 ..btw what is ws lib? how to setup protocol of ws://localhost:8080? is it from apache or something?