LiveCode Connections with Websockets

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
wmiriye
Posts: 24
Joined: Tue Jun 02, 2020 4:09 am

LiveCode Connections with Websockets

Post by wmiriye »

This subject was brought up last year. Checking in to see if there has been any updates on real time notifications. Can LC connect to a websocket server. I am trying to create a simple chat like android app like WhatsApp.

My backend server is powered by laravel websockets. If anyone has done this, please point me to the right direction.
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LiveCode Connections with Websockets

Post by FourthWorld »

It should be possible for someone to extend LiveCode's libURL to handle http connections upgraded to websockets.

But at the moment I don't know of anyone in a position to do so.

LiveCode does support regular sockets quite well, which are simpler to initiate and more efficient in throughput.

Is there any sort of extension for Laravel to allow native clients to use regular sockets?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
bodah
Posts: 4
Joined: Wed Dec 16, 2020 7:42 am

Re: LiveCode Connections with Websockets

Post by bodah »

I'm working on a websocket client / server extension for livecode written in Go, currently half working via LCB ffi. Stalled whilst figuring out C callbacks in LCB and how to pass a Char * array to a C function ( from LCB , documentation is terrible). Hopefully will be sooner rather than later if frustration doesn't get the better of me!
FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10103
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: LiveCode Connections with Websockets

Post by FourthWorld »

Super cool of you to do that, and it'll be an exciting contribution for many. Thank you.

I'm still wondering why service providers limit APIs to websockets, consuming more resources than they need to when used by any non-browser app...
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
bodah
Posts: 4
Joined: Wed Dec 16, 2020 7:42 am

Re: LiveCode Connections with Websockets

Post by bodah »

product managers pushing a shiny new thing probably...
williamjamieson
Posts: 10
Joined: Fri Apr 23, 2021 6:01 am

Re: LiveCode Connections with Websockets

Post by williamjamieson »

Hello bohda,

just curious if you have made any progress on this?

Thanks
Post Reply