Mark ,

Should work (untested) :

Node.js on the server side + revBrowser (desktop) or mobileBrowser 
(iOS/android) + some js +  <a href…>client-side pseudo urls</a> to get catched 
by :

on browserLoadRequested pUrl, pType
-- prefered on the iOS platform (desktop platforms untested)
end browserLoadRequested

and 

on browserStartedLoading pUrl
-- prefered on the Android platform (desktop platforms untested)
end browserStartedLoading

to being able to exchange bidirectional messages between your web layer to the 
native livecode one.

note : your web view pseudo URLs needs to match existing files 
(workingpath/file.html…) in your client app sandboxed cache or document 
directory to be catchable on the Android platform at least. To maintain a 
common codebase with the iOS app, i have the habit to create the on this 
platform too.

Pierre

Le 8 juil. 2013 à 20:35, Mark Wilcox a écrit :

> 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 <s...@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 <and...@ctech.me>
>>> To: How to use LiveCode <use-livecode@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
>>> and...@ctech.me
>>> _______________________________________________
>>> use-livecode mailing list
>>> use-livecode@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@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@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@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@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to