I need to implement a websocket on Android, so I tried the demo (using
emulator) on
http://jwebsocket.org/ but i couldn't connect to my
socket.io server... what's wrong?? is it me or the documentation on
that site really sucks?? After reading all that shit I still don't
know how to implement a websocket client...
On 21 nov, 16:15, Konstantin Käfer <
kkae...@gmail.com> wrote:
> Is there a sequential access parser (like SAX for XML) for JSON data?
>
> 2010/11/21 Konstantin Käfer <
kkae...@gmail.com>:
>
>
>
>
>
>
>
> > According tohttp://
www.ietf.org/rfc/rfc4627.txt, whitespace including
> > newline characters is allowed before and after any token. That means
> > that you can't use \n to find complete JSON statements. Unescaped \n
> > is of course illegal within a string.
>
> > On Sun, Nov 21, 2010 at 19:53, Mikeal Rogers <
mikeal.rog...@gmail.com> wrote:
> >> \n can't appear unescaped in JSON so you can use it as a delimiter, it's
> >> what we do for the CouchDB continuous _changes feed.
> >> Parsing becomes a simple matter of buffering the chunks until the next
> >> newline.
> >> -Mikeal
>
> >> On Sun, Nov 21, 2010 at 8:47 AM, Guillermo Rauch <
rau...@gmail.com> wrote:
>
> >>> Yep, you can use a WebSocket client and parse the
socket.io protocol.
> >>> Look at the websocket tests for an example:
>
> >>>
https://github.com/LearnBoost/Socket.IO-node/blob/0.6.2/tests/transpo...