Javascript Sockets use the Socket functionality available in flash, and through an ExternalInterface with an swf embedded in a page, provide the ability to program sockets with javascript
Google Code: http://code.google.com/p/jssockets/
This is the IP and Port that you want to connect to
Type in a message and click send to send these message to the server. type 'quit'
and the server will close the connection.