A few weeks ago i encountered the same problem. At the time I was in a 
hurry and did a blablabla.replace(/\'/g, '') before sending the RAW back to 
the clients.

I just took some time to investigate this.

There are 3 transport types:
0    Long Polling: default transport method
1    JSONP: for cross domain push
2    XHRStreaming: for better performance and low latency 


The problem has partially been tackeled for JSONP
    
https://github.com/APE-Project/APE_Server/commit/88a75bddab6695e5c4d2da4bb43fb70c2cb019de
    JSONP fix: APE_Server does not escape single-qoutes in 
Ape.transport.... 
Unfortunately that breaks Longpolling


                        disabled the lines 229-232 in json.c
APE.Config.transport = 0;    works perfect
APE.Config.transport = 1;     not tested
APE.Config.transport = 2;    SyntaxError: missing ) after argument list

                        enabled the lines 229-232 in json.c
APE.Config.transport = 0;    SyntaxError: JSON.parse: bad escaped character
APE.Config.transport = 1;     not tested
APE.Config.transport = 2;    works


What I do not understand (yet) is how transport can effect the 
serialisation, a data structure that is beeing transformed into json should 
always render the same. I have to think about that / investigate further.

Peter

-- 
-- 
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/

--- 
You received this message because you are subscribed to the Google Groups "APE 
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to