Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simple Example does not work #6

Open
GoogleCodeExporter opened this issue Nov 10, 2015 · 3 comments
Open

Simple Example does not work #6

GoogleCodeExporter opened this issue Nov 10, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 6 Nov 2008 at 12:24

@GoogleCodeExporter
Copy link
Author

thanks for catching this, I was about to give up.

Original comment by [email protected] on 1 Mar 2009 at 2:44

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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

  • Added labels: Milestone-Release1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant