Page 1 of 1

LiveCode Connections with Websockets

Posted: Thu Oct 29, 2020 7:41 am
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.

Re: LiveCode Connections with Websockets

Posted: Fri Nov 06, 2020 1:20 am
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?

Re: LiveCode Connections with Websockets

Posted: Sun Dec 27, 2020 11:42 pm
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!

Re: LiveCode Connections with Websockets

Posted: Mon Dec 28, 2020 6:14 am
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...

Re: LiveCode Connections with Websockets

Posted: Mon Dec 28, 2020 9:40 am
by bodah
product managers pushing a shiny new thing probably...

Re: LiveCode Connections with Websockets

Posted: Tue Apr 27, 2021 12:50 am
by williamjamieson
Hello bohda,

just curious if you have made any progress on this?

Thanks