Page 1 of 1

Current state of sockets on IOS

Posted: Tue Sep 29, 2015 12:06 pm
by nicolascro
Hello,
I want to develop a simple multi-users game and I figured out using sockets would be a good option.
But although I've been doing some successful attempts on mac and windows using the chat server sample stack as a starting point, I can't get it to work properly on iOS (client)

I've been looking for answers to my problems in the forum, but I didn't get a clear conclusion.
So my question is: what is the current state of sockets for iOS, can you actually use them?
I am on LC 7.0.6 and sockets seem to work only partially, I can't seem to use "with message callbackmessage" as in:
open socket [to] host[:port[|ID]] [with message callbackMessage]

Do I need an external? not sure what the rresocket external is nor where to find it.

Has anybody used sockets on iOS successfully?

Any info much appreciated, thanks

Nicolas

Re: Current state of sockets on IOS

Posted: Tue Sep 29, 2015 12:25 pm
by LCMark
@nicolascro: We added mobile socket support in 7.1 - they should work the same way as they do on the desktop platforms.

Re: Current state of sockets on IOS

Posted: Tue Sep 29, 2015 3:50 pm
by nicolascro
Thanks LCMark,

I previously had problems with 7.1.0 RC3, but I just tried 7.1.0 STABLE which was apparently released a few days ago and it all works fine!!

Great!

Re: Current state of sockets on IOS

Posted: Sun Oct 25, 2015 8:18 pm
by nicolascro
Hi again,
While I am having great results working with sockets on a local networks for an IOS multiusers game, I now want my apps to be able to access my socket server from the web rather than only from the local network.

what is the right way to do it?
-Is there actually a way to run a standalone (the socket server) directly on a server (would that be runing as a service? how would I do that?)

-or do I have to do something more complicated, like having a server getting the queries and forwarding them to my socket server standalone on a local network, or maybe setup a livecode server with scripts to do all the job.

(I hope the first option is possible )

Any suggestions would be much appreaciated.
Many thanks