Exploring the example code


show more Exploring the example code provides you with in-depth training on Developer. Taught by Bill Weinman as part of the HTML5: Messaging and Communications in Depth show less
please wait ...

Exploring the example code

So this is our little chat application, and you can see that I can type in a message here, "hi there," and it comes up over there. And I can type in a message here and it says, "hi back," and that one comes up over here. And these are in two different domains, which means that they're in two different origins for the purposes of the same-origin policy. So let's take a look at how this works and how this is implemented. Here we have chat-one.html, and this is the one that's running on one.3sn.net, and here we have chat-two.html, which is running on two.3sn.net.

So before we move forward, let's just take a quick browse through it for the people that are typing along with us. So that was chat-one.html, and now we'll look at chat-two.html. And the time-string gets cut off there just a little bit. There it is. And there we have it. So the first thing you want to do is you want to come down here in both of these and make sure that your URLs and origin s...

Exploring the example code
Video duration: 5m 1s 43m 19s Intermediate

Viewers:

Exploring the example code provides you with in-depth training on Developer. Taught by Bill Weinman as part of the HTML5: Messaging and Communications in Depth

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