r/javascript • u/Dested • Nov 07 '12
Node.js in Chrome with node-chromify (repost from /r/nodejs)
http://blog.iceddev.com/2012/11/05/node-js-in-chrome/2
u/apidocs Nov 09 '12
I wrote a blog post of what you could potentially do with this sort of technology.
http://thomasdav.is/posts/the-problem-with-distributed-social-networks.html
1
u/darksurfer Nov 07 '12
Hmm, if you can listen on a port using JavaScript does this imply you can also open network connections to ports on other machines (using something other than http) ?
2
u/xkero Nov 07 '12
Yes, both Nodejs (using it's net module) and extensions in Chrome (after turning on Experimental Extension APIs under chrome://flags ) can create or listen for tcp connections on arbitrary ports.
2
u/darksurfer Nov 07 '12
isn't anyone concerned about the security implications of this ?
4
u/xkero Nov 07 '12
What security implications? Both of these APIs are for installed scripts, random webpages aren't able to access them.
1
1
u/Iggyhopper extensions/add-ons Nov 08 '12 edited Nov 08 '12
They said the same thing about Android apps. No, no issues, because they are installed apps.
I mean, the security issues are due to stupid users installing everything under the sun, but still, ಠ_ಠ
1
1
u/[deleted] Nov 07 '12
What is a use case for this? Could I host a page that starts a webserver on a client? Why would I want to do that?