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

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: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: LiveCode Connections with Websockets

Post by FourthWorld » Fri Nov 06, 2020 1:20 am

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

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: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: LiveCode Connections with Websockets

Post by FourthWorld » Mon Dec 28, 2020 6:14 am

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 » Mon Dec 28, 2020 9:40 am

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 » Tue Apr 27, 2021 12:50 am

Hello bohda,

just curious if you have made any progress on this?

Thanks

Post Reply

Return to “Internet”