These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:19 pm Advanced search

postmessage remote machine/other user/viewer?

Here you can discuss things related to HTML and the Web in general that do not fit in to other categories.

postmessage remote machine/other user/viewer?

Postby peterkroon » Wed Feb 10, 2010 4:49 pm

Hi,

I know it is possible to post crossdomain and to different tabs.
Example here: http://html5demos.com/postmessage2
But this it only viewable by 1 user. The person who is posting the message.

Is it also possible to use postmessage to a remote machine e.g. other user?
Or that anyone who goes to the page which has the eventlistener on it will actually see the posted message?

Is this possible?

Thanks!!!

I &heart; html5 :-)

Peter
peterkroon
<h6>
 
Posts: 1
Joined: Wed Feb 10, 2010 4:42 pm

Postby zcorpan » Thu Feb 11, 2010 4:04 am

You'd have to communicate via the server. For instance, you could use XHR to send a request to the server, and use SSE to listen for events from the server.

http://dev.w3.org/2006/webapi/XMLHttpRequest-2/
http://dev.w3.org/html5/eventsource/

Or you could use Web Sockets.

http://dev.w3.org/html5/websockets/
http://tools.ietf.org/html/draft-hixie- ... etprotocol
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 1 guest