Alex Rivera | Logout

How can I communicate over TCP sockets from JavaScript?

Asked 2008-11-21T01:31:56.297
24

I'm thinking about how limiting it is for AJAX apps to have to poll for updates, when what would be ideal is for javascript to be able to set up a real two way connection to the server. I'm wondering if there is some method of integrating javascript with a browser plugin that can make a tcp connection so that I could pass data into and out of the browser plugin.

Edit
Report

1 Answer

16

WebSockets is designed to solve this problem.

answered 2011-07-09T02:12:57.753

Your Answer