Re: Mosquitto library.

2024-06-12 Thread Tom Glod via use-livecode
I was just viewitng the "livecode" tag on github. and saw this library. https://github.com/trevordevore/lc-mosquitto Trevor is prolific. Big respect. On Wed, Jun 12, 2024 at 7:33 PM Alex Tweedly via use-livecode < use-livecode@lists.runrev.com> wrote: > > On 12/06/2024 18:26, Richard Gaskin via

Re: Mosquitto library.

2024-06-12 Thread Alex Tweedly via use-livecode
On 12/06/2024 18:26, Richard Gaskin via use-livecode wrote: Mike Kerner wrote: Richard wrote: Either way, I'd imagine a subscribe client looking to avoid polling is going to depend on a long-lived socket, no? That's part of the point of a websocket. you don't have to keep reopening it, and

Re: Mosquitto library.

2024-06-12 Thread Mike Kerner via use-livecode
the original question was about mosquitto and handling messaging, thus the remarks about websockets. bob: the server just opens the port and listens. there is no timeout on the server. the client sends the request, and then times out if it does not receive a reply. whether it receives a reply or ti

Re: Mosquitto library.

2024-06-12 Thread Bob Sneidar via use-livecode
Hi Richard. This email thread now has me curious. If I have an app that starts listening on a port, does that server port have a timeout associated with it that needs refreshing, or does the timeout only exist when a client connects? I have always assumed the latter. Bob S > On Jun 12, 202

Re: Mosquitto library.

2024-06-12 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > Richard wrote: >> Either way, I'd imagine a subscribe client looking to avoid polling >> is going to depend on a long-lived socket, no? > > That's part of the point of a websocket. you don't have to keep > reopening it, and both ends can use it, as needed. Exactly, websockets

Re: Mosquitto library.

2024-06-11 Thread Mike Kerner via use-livecode
>Either way, I'd imagine a subscribe client looking to avoid polling is going to depend on a long-lived socket, no? That's part of the point of a websocket. you don't have to keep reopening it, and both ends can use it, as needed. On Mon, Jun 10, 2024 at 11:38 AM Bob Sneidar via use-livecode < use

Re: Mosquitto library.

2024-06-10 Thread Bob Sneidar via use-livecode
No, and Yes. ;-) Bob S On Jun 8, 2024, at 6:11 PM, Richard Gaskin via use-livecode wrote: * if we get websockets working, that will be another way to make this work. Do we need websockets on this? XMPP, for example, runs over regular sockets. Either way, I'd imagine a subscribe client look

Re: Mosquitto library.

2024-06-08 Thread Richard Gaskin via use-livecode
Mike Kerner wrote: > * if you're on mobile, you can use push Desktop push isn't supported in LC's notifications API? > * you can also set up a small web server in your app to receive messages. > levure uses this technique to receive messages from a plugin in sublime > text that a script has bee

Re: Mosquitto library.

2024-06-08 Thread Mike Kerner via use-livecode
it might be time for the compiler to come out of the vaporware or the web features to come out of the vaporware if you've never set up a web server, there is example code in levure for setting up a tiny one to receive and respond to events. On Fri, Jun 7, 2024 at 6:15 PM Tom Glod via use-livecode

Re: Mosquitto library.

2024-06-07 Thread Tom Glod via use-livecode
I think it might be time to solve this. On Fri, Jun 7, 2024 at 6:13 PM Tom Glod wrote: > websockets again. > > On Fri, Jun 7, 2024 at 3:46 PM Mike Kerner via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> * if you're on mobile, you can use push >> * you can also set up a small w

Re: Mosquitto library.

2024-06-07 Thread Tom Glod via use-livecode
websockets again. On Fri, Jun 7, 2024 at 3:46 PM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > * if you're on mobile, you can use push > * you can also set up a small web server in your app to receive messages. > levure uses this technique to receive messages from a p

Re: Mosquitto library.

2024-06-07 Thread Mike Kerner via use-livecode
* if you're on mobile, you can use push * you can also set up a small web server in your app to receive messages. levure uses this technique to receive messages from a plugin in sublime text that a script has been updated (so livecode will reload the script) * if we get websockets working, that wil

Re: Mosquitto library.

2024-06-07 Thread Peter Bogdanoff via use-livecode
Related to Mosquitto and the publish/subscribe model: is there any method now in LiveCode for my application to receive outside messages without explicitly checking to see if anything is available? In other words, is there a way for a message from a server to directly enter the message path with

Re: Mosquitto library.

2024-06-07 Thread Tom Glod via use-livecode
How are you trying to get it to work with Livecode? On Thu, Jun 6, 2024 at 11:06 AM JosebaTELUR via use-livecode < use-livecode@lists.runrev.com> wrote: > Hello: > > I'm trying to get the Mosquitto library to work and can't get it to work. > Any help from the forum? > (LiveCode 9.6.9 and Mojave S