top | item 2314583

Announcing pushJS: Send javascript to any connected browser

9 points| adamilardi | 15 years ago |adamilardi.com | reply

Visit my live demo @ http://li50-5.members.linode.com:8081/demo.html and http://li50-5.members.linode.com:8081/whoison

@adamilardi on twitter

7 comments

order
[+] toto87654321|15 years ago|reply
fun things to do: redirect users to porn site using: window.location = 'http://youporn.com; (or worst) or just sending infinite number of messages while(1){alert('click ok!');}
[+] jcapote|15 years ago|reply
Isn't this just pusherapp.com? (not trying to be snide, just curious)
[+] adamilardi|15 years ago|reply
I will check them out. I'm not affiliated with them.
[+] drivebyacct2|15 years ago|reply
What? You just push something through WebSockets and blindly eval() it?

This is going to sound snide, and I'm really just confounded... what was "created" here? What is there to "announce"?

[+] adamilardi|15 years ago|reply
You can always add specific functionality to the javascript to handle specific commands. What was created is a nice example of how to integrate websockets with a message q into web application. It also lets you push ANY javascript via redis to anyone's browser. The concept has lots of potential. I'd like to see more widespread use of websockets. I believe projects like this can help get the ball rolling.