Code Monkey home page Code Monkey logo

jsocket's People

Contributors

tjvdmolen avatar

Watchers

 avatar

jsocket's Issues

Missing UTF-8 Characters

Using jSocket from the browser, I send "green\u0000yellow" and expect 
"green\u0000yellow", or "green\x00yellow" at the server.php, however, I receive 
"green\x0r\x0writ" (php); i.e. html entities: 
"green�r�writ" See: 
http://www.utf8-chartable.de/unicode-utf8-table.pl?number=1024&unicodeinhtml=dec
&htmlent=1

What steps will reproduce the problem?

1) Setup the jsocket sample (samples/client/example/example.html) and the 
http://code.google.com/p/jsocket/source/browse/trunk/jsocket/samples/server/php/
server.php

2) Replace mySocket.write("GET / HTTP/1.1\r\n\r\n"); with
mySocket.write("green\u0000yellow");

3) The server.php code should receive "green\x0yellow", however the data 
becomes (php) "green\x0r\x0writ"

What version of the product are you using? On what operating system?
Version: svn:r132

I have also tried the writeUTFBytes and writeUTF functions.


Original issue reported on code.google.com by [email protected] on 25 Jul 2010 at 3:59

Simple Example does not work

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

Need to move to Action Script 3.0's Socket class

Need to move to Action Script 3.0's Socket class. 
This will solve the zero byte terminator problems.

As well as some type problems.

Original issue reported on code.google.com by aidamina on 11 May 2008 at 9:17

Sample servers

Add example servers in java and c#


Original issue reported on code.google.com by aidamina on 18 May 2008 at 12:46

jSocket.onData(data) returns integer data.length instead of data as string

What steps will reproduce the problem?
1. on samples/client/example/example.html
2. send string data to client
3. string length is received

What is the expected output? What do you see instead?
Expected output is string data (text) and not string length (integer)

What version of the product are you using? On what operating system?
Using samples/client/example/example.html from SVN, XP




Original issue reported on code.google.com by [email protected] on 28 Mar 2011 at 9:03

Attachments:

Fix IE7 possible bug

Need to trace down a problem with IE7 and ExternalInterface.addCallback


Original issue reported on code.google.com by aidamina on 21 May 2008 at 9:18

AS3 Socket Documentation

Adjust documentation to match AS3 Socket functionality


Original issue reported on code.google.com by aidamina on 18 May 2008 at 12:47

Simple example does not work

What steps will reproduce the problem?
1. visit http://proxy.interflective.com/test.html
2. receive this error: 
[21/04/2012 21:37:35] JavaScript - http://proxy.interflective.com/test.html
Inline script thread
Uncaught exception: SWFObject not found! Please download from 
http://code.google.com/p/swfobject/
Error thrown at line 88, column 4 in <anonymous function: 
jSocket.prototype.setup>(target, swflocation) in 
http://proxy.interflective.com/jsocket.js:
    throw 'SWFObject not found! Please download from http://code.google.com/p/swfobject/';
called from line 28, column 8 in http://proxy.interflective.com/test.html:
    socket.setup('mySocket');

3. Submit it as a problem with the example on the jsocket codebase :)

Original issue reported on code.google.com by [email protected] on 21 Apr 2012 at 8:38

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.