Current state of sockets on IOS

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
nicolascro
Posts: 7
Joined: Tue Apr 17, 2012 6:21 pm

Current state of sockets on IOS

Post by nicolascro » Tue Sep 29, 2015 12:06 pm

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

LCMark
Livecode Staff Member
Livecode Staff Member
Posts: 1232
Joined: Thu Apr 11, 2013 11:27 am

Re: Current state of sockets on IOS

Post by LCMark » Tue Sep 29, 2015 12:25 pm

@nicolascro: We added mobile socket support in 7.1 - they should work the same way as they do on the desktop platforms.

nicolascro
Posts: 7
Joined: Tue Apr 17, 2012 6:21 pm

Re: Current state of sockets on IOS

Post by nicolascro » Tue Sep 29, 2015 3:50 pm

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!

nicolascro
Posts: 7
Joined: Tue Apr 17, 2012 6:21 pm

Re: Current state of sockets on IOS

Post by nicolascro » Sun Oct 25, 2015 8:18 pm

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

Post Reply