GCDAsyncSocket "socket.io" compatible?

316 views
Skip to first unread message

eric e. dolecki

unread,
Jan 24, 2012, 12:05:36 PM1/24/12
to CocoaAsyncSocket
I am using GCDAsyncSocket to connect to a socket.io server. I seem to
be able to connect - although the Terminal on the socket.io socket
doesn't state it. If I send data the connection is dropped.

Is GCDAsyncSocket "socket.io" compatible?

Oliver Greschke

unread,
Nov 16, 2013, 4:59:38 PM11/16/13
to cocoaasy...@googlegroups.com
I would be interested here to ... do you already know more about that?

Arno Gramatke

unread,
Nov 18, 2013, 10:46:37 AM11/18/13
to cocoaasy...@googlegroups.com
Hi Oliver,

short answer: GCDAsyncSocket is „socket.io“ compatible (and probably always was). :)

Long answer: GCDAsyncSocket is a TCP/IP networking library, but it doesn’t implemented higher level protocols like HTTP or WebSocket. To get it to connect to a socket.io server you would have to write all the protocol handling yourself.

Out of curiosity I set up a little test project - quick’n’dirty proof of concept. I attached the project to this email (tested in Xcode 5.0.2/iOS Simulator 7.0). Use the server.js in the project directory as endpoint (it’s all on localhost port 22222). When you tap on the button it sends the local time to the server (look in the server console). The responses from the server are logged to the Xcode console.

If you need help let me know.

Cheers
Arno

socket.io test.zip

Oliver Greschke

unread,
Nov 19, 2013, 9:40:07 AM11/19/13
to cocoaasy...@googlegroups.com
Hi Arno,

thanks a lot for your Demo Project, very very kind of you! :-)

Got it running on iOS, but sadly it didn't work with Apportable to run on an Android device, which was the plan.

So I hope the people from Apportable will manage to get RocketSocket running somewhen, which seems to be easier to handle with Sockets.IO

Cheers,

Oliver





--
You received this message because you are subscribed to a topic in the Google Groups "CocoaAsyncSocket" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/cocoaasyncsocket/05fwuXK7OfQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to cocoaasyncsock...@googlegroups.com.
To post to this group, send email to cocoaasy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoaasyncsocket/4CD998D2-E065-4BFA-80DF-152C759C2576%40gramatke.biz.
For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "CocoaAsyncSocket" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cocoaasyncsock...@googlegroups.com.
To post to this group, send email to cocoaasy...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/cocoaasyncsocket/8bd8dbd4-7599-457c-a491-86a9bacf09f0%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


<socket.io test.zip>

Reply all
Reply to author
Forward
0 new messages