calico-crusade-2 / jsocket

Automatically exported from code.google.com/p/jsocket
0 stars 0 forks source link

Simple Example does not work #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The Method jSocket.send() which is used in the simple example does not
exist in the current (rev. 78) revision.

It should be replaced with jSocket.writeUTFBytes().

Furthermore the example is not very helpful as the onData event handler
function does not print the data the server sends. The example should be
changed so that the following line prints the returned data from the server:

alert('Recieved ' + data + ' bytes: ' + socket.readUTFBytes(data));   

Original issue reported on code.google.com by ch.no...@noltec.org on 6 Nov 2008 at 12:24

GoogleCodeExporter commented 9 years ago
thanks for catching this, I was about to give up.

Original comment by schi...@gmail.com on 1 Mar 2009 at 2:44

GoogleCodeExporter commented 9 years ago
The code provided in the Simple Example was for an earlier version of jsocket 
based on 
the flash XMLSocket. We are currently working with the AS3 Socket class, which 
needed a 
change in the jsocket API. A new version of jsocket will be available in the 
next week 
or so, and I expect to update the examples and documentation, shortly after 
that as 
well. When that's all sorted out, including some new server examples, jsocket 
1.0.0 
will be released.

Original comment by aidamina on 29 May 2009 at 12:58

GoogleCodeExporter commented 9 years ago

Original comment by aidamina on 29 May 2009 at 12:58