<script language="JavaScript" src="sockets.js"></script>
<script language="JavaScript">
function testSocket()
{
  var mySock = new JNEXT.AsyncLineSocket();
  mySock.onConnected  = function() { this.sendLine( "hello" ); }
  mySock.onLine = function( strLine ) { alert( strLine ); }
  mySock.connect( "127.0.0.1", 64446 ); // connect to remote socket
}
</script>