LiveCode and WebSockets

Mike Kerner MikeKerner at roadrunner.com
Mon Jul 8 16:55:27 EDT 2013


FYI, there is a mobile sockets plugin being developed by Monte at the
moment.  The first beta has been in our hands for a couple of weeks.

Sockets are fun, and very involved.  You are the one implementing the
protocols.  Sometimes that's exactly what you need, and other times, it's
extra work you weren't planning on.

I think one of the things you will run into is that we do not have a good
way to launch and manage secondary processes, yet.  You might be better off
to have your socket goodies running in livecode server, or in a separate
instance of LC so that you have an easier time keeping all the
communication, etc. straight.


On Mon, Jul 8, 2013 at 2:51 PM, Andrew Kluthe <andrew at ctech.me> wrote:

> >>However, we don't have proper sockets support on mobile (without
> externals at least)
>
> I am mainly interested in desktop apps at the moment simply because we are
> doing most of our mobile apps as mobile web apps.
>
> However, this will change likely in the next few years if we were to see
> sockets and UI (resolution independence, etc) improvements on mobile.
>
>
> >>and websockets are very definitely not the same thing as standard
> sockets.
>
> I am having a hard time just finding straight forward info on the lower
> level websocket information. As of right now all the information I am
> finding is how to use websockets within this framework or that framework
> and nothing really about the differences between websockets and standard
> sockets.
>
> Also, socket programming in general (and in livecode) is new to me because
> up until now I have wrote most of my applications using http interfaces.
> Not having a non-blocking http client is really getting in the way of some
> of the things I want to do with livecode and I really would like realtime
> notifications, broadcasting, etc.
>
> Would you care to discuss the difference between websockets and the sockets
> we work with in livecode or point me to some basic information on the
> websocket implementation you think we could implement in pure livecode?
> What things would keep it from working very efficiently?
>
> Thanks for taking the time to respond,
>
> Andrew
>
>
> On Mon, Jul 8, 2013 at 1:35 PM, Mark Wilcox <m_p_wilcox at yahoo.co.uk>
> wrote:
>
> > We know, I'm interested in websockets for realtime comms between apps.
> > Right now I think it'd be possible to implement one or more of the
> > supported transports for socket.io in pure LiveCode but maybe not very
> > efficiently. An alternative would be to wrap existing native
> > implementations as externals. I've not looked into it in any great depth
> as
> > I'm basically waiting for the engine refactoring to be completed before
> > trying to hook new stuff in.
> >
> > Pierre Sahores <sc at sahores-conseil.com> wrote:
> >
> > >The HTTP(S) REST architecture is full supported on any LC desktop or
> > mobile platform, iOS and Android included. They can be set to act as
> > clients of any kind of nTier server side application (LC-Server, PHP,
> RoR,
> > etc...).
> > >
> > >Le 8 juil. 2013 à 18:19, Mark Wilcox a écrit :
> > >
> > >> I'm interested in using something like socket.io as part of a backend
> > for mobile (and maybe also desktop) apps.  However, we don't have proper
> > sockets support on mobile (without externals at least) and websockets are
> > very definitely not the same thing as standard sockets.
> > >>
> > >> What do you have in mind?  I'm certainly interested in discussing it.
> > >>
> > >> Mark
> > >>
> > >>
> > >> ________________________________
> > >> From: Andrew Kluthe <andrew at ctech.me>
> > >> To: How to use LiveCode <use-livecode at lists.runrev.com>
> > >> Sent: Monday, 8 July 2013, 16:05
> > >> Subject: LiveCode and WebSockets
> > >>
> > >>
> > >> I have been learning a little bit about websockets lately for a
> project
> > and
> > >> I have never really played around with livecode's socket communication
> > >> methods. This makes me curious.
> > >>
> > >> Is there anyone else on the list that might be more familiar with both
> > that
> > >> would be interested in discussing using something like socket.io as
> > part of
> > >> a backend for livecode desktop applications?
> > >>
> > >>
> > >> --
> > >> Regards,
> > >>
> > >> Andrew Kluthe
> > >> andrew at ctech.me
> > >> _______________________________________________
> > >> use-livecode mailing list
> > >> use-livecode at lists.runrev.com
> > >> Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >> _______________________________________________
> > >> use-livecode mailing list
> > >> use-livecode at lists.runrev.com
> > >> Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > >> http://lists.runrev.com/mailman/listinfo/use-livecode
> > >
> > >--
> > >Pierre Sahores
> > >mobile : 06 03 95 77 70
> > >www.sahores-conseil.com
> > >
> > >
> > >_______________________________________________
> > >use-livecode mailing list
> > >use-livecode at lists.runrev.com
> > >Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > >http://lists.runrev.com/mailman/listinfo/use-livecode
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> >
>
>
>
> --
> Regards,
>
> Andrew Kluthe
> andrew at ctech.me
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list