Implementing a web sockets client


show more Implementing a web sockets client provides you with in-depth training on Developer. Taught by Andy Olsen as part of the HTML5 Power Workshop show less
please wait ...

Implementing a web sockets client

In this lesson we're going to see how to implement a web socket client in an HTML page. It'll talk to a web socket server that I've already written implemented using node js. So if you don't already have node js platform installed in your machine all you need to do is to run this MSI file from the Project files folder. And it'll install node js in your Program files folder on windows. And then to actually start the server running, if you open up a command window, and type this in, so it will run the node js engine, and it'll start socketserverws.js.

That's the name of my web server, that listens on port 8888 for web socket connections. So the web server is now listening on port 8888 for web socket connections and we're going to make those connections from this client here. Now, the way I've written the server is that it'll only accept web socket connections that are issued from a special domain of local hosts. So, for example, if you ...

Implementing a web sockets client
Video duration: 7m 59s 3h 9m Intermediate

Viewers:

Implementing a web sockets client provides you with in-depth training on Developer. Taught by Andy Olsen as part of the HTML5 Power Workshop

Subjects:
Developer Web video2brain
Software:
HTML
Author:
please wait ...