Re: Websockets ... again.
If you are going to roll your own security with raw sockets, what I had to do was encrypt the data then base64encode it, then reverse the process on the other side. Sent from my iPhone > On Apr 27, 2024, at 17:56, Richard Gaskin via use-livecode > wrote: > > Bernard Devlin wrote: > >> One thing to bear in mind is that Livecode does not support secure sockets >> (despite what the Dictionary might say). > > This is based on the Dictionary example for the "open socket" command. It > runs without error, and the callback works. > > on mouseup > open secure socket to "livecodejournal.com:443" \ >with message "wasConnected" without verification > put it & the result > end mouseup > > on wasConnected > put cr& the params after msg > end wasConnected > > > I haven't taken the time to craft a more specific test, but perhaps you can > describe what you encountered to help guide that. > > -- > Richard Gaskin > FourthWorld.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
Re: Websockets ... again.
Bernard Devlin wrote: > One thing to bear in mind is that Livecode does not support secure sockets > (despite what the Dictionary might say). This is based on the Dictionary example for the "open socket" command. It runs without error, and the callback works. on mouseup open secure socket to "livecodejournal.com:443" \ with message "wasConnected" without verification put it & the result end mouseup on wasConnected put cr& the params after msg end wasConnected I haven't taken the time to craft a more specific test, but perhaps you can describe what you encountered to help guide that. -- Richard Gaskin FourthWorld.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
Re: Websockets ... again.
LC just provides raw sockets. You can implement a TLS equivalent with a bit of elbow grease. Writing your own protocol gives a lot of control. TLS is something you may have to use to check boxes. Out of curiosity is there a market for something like this within the community? Sent from my iPhone > On Apr 27, 2024, at 6:30 PM, Mike Kerner via use-livecode > wrote: > > really? discuss. > >> On Sat, Apr 27, 2024 at 5:06 PM Bernard Devlin via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> One thing to bear in mind is that Livecode does not support secure sockets >> (despite what the Dictionary might say). >> On Sat, Apr 27, 2024 at 12:31 AM Richard Gaskin via use-livecode < >> use-livecode@lists.runrev.com> wrote: >>> - How hard would it be to script it using LC's good socket support? >>> Richard Gaskin >>> FourthWorld.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 > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, > and did a little diving. > And God said, "This is good." > ___ > 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
Re: Websockets ... again.
really? discuss. On Sat, Apr 27, 2024 at 5:06 PM Bernard Devlin via use-livecode < use-livecode@lists.runrev.com> wrote: > One thing to bear in mind is that Livecode does not support secure sockets > (despite what the Dictionary might say). > > On Sat, Apr 27, 2024 at 12:31 AM Richard Gaskin via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > > - How hard would it be to script it using LC's good socket support? > > > > Richard Gaskin > > FourthWorld.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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
Re: Websockets ... again.
One thing to bear in mind is that Livecode does not support secure sockets (despite what the Dictionary might say). On Sat, Apr 27, 2024 at 12:31 AM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > > - How hard would it be to script it using LC's good socket support? > > Richard Gaskin > FourthWorld.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
Re: Websockets ... again.
I was thinking the same thing. Sent from my iPhone > On Apr 26, 2024, at 16:54, Tom Glod via use-livecode > wrote: > > Richard, thanks for chiming in. > > 1. dunno, it can't be that hard, i would take an existing implementation in > another language and rewrite it in livecode. > 2. dunno > 3. interesting thought, I will look into testing this. > 4. many blockchains are websockets only, and most API with data "streams". > > Mike, I hear you on all that. > >> On Fri, Apr 26, 2024 at 7:31 PM Richard Gaskin via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> >> Tom Glod wrote: >>> Can we get a measure again as to the interest in web sockets >> implementation >>> in livecode? >> >> Requested 2015, last activity 2020: >> https://quality.livecode.com/show_bug.cgi?id=16091 >> >> Given the elapsed time so far, maybe we can find another way to do this. >> >> - How hard would it be to script it using LC's good socket support? >> >> - Is there a curl option available that might allow Charles to handle >> this more quickly in tsNet? >> >> - Would it be feasible to use WebSockets through an embedded browser >> widget? >> >> - What are the use cases requiring WebSockets excluisively? >> >> - Given the better performance and ligher resource usage for normal >> sockets, could >> the service host consider supporting normal sockets in addition to >> WebSockets? >> >> >> Richard Gaskin >> FourthWorld.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 ___ 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
Re: Websockets ... again.
Richard, thanks for chiming in. 1. dunno, it can't be that hard, i would take an existing implementation in another language and rewrite it in livecode. 2. dunno 3. interesting thought, I will look into testing this. 4. many blockchains are websockets only, and most API with data "streams". Mike, I hear you on all that. On Fri, Apr 26, 2024 at 7:31 PM Richard Gaskin via use-livecode < use-livecode@lists.runrev.com> wrote: > Tom Glod wrote: > > Can we get a measure again as to the interest in web sockets > implementation > > in livecode? > > Requested 2015, last activity 2020: > https://quality.livecode.com/show_bug.cgi?id=16091 > > Given the elapsed time so far, maybe we can find another way to do this. > > - How hard would it be to script it using LC's good socket support? > > - Is there a curl option available that might allow Charles to handle > this more quickly in tsNet? > > - Would it be feasible to use WebSockets through an embedded browser > widget? > > - What are the use cases requiring WebSockets excluisively? > > - Given the better performance and ligher resource usage for normal > sockets, could > the service host consider supporting normal sockets in addition to > WebSockets? > > > Richard Gaskin > FourthWorld.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
Re: Websockets ... again.
Tom Glod wrote: > Can we get a measure again as to the interest in web sockets implementation > in livecode? Requested 2015, last activity 2020: https://quality.livecode.com/show_bug.cgi?id=16091 Given the elapsed time so far, maybe we can find another way to do this. - How hard would it be to script it using LC's good socket support? - Is there a curl option available that might allow Charles to handle this more quickly in tsNet? - Would it be feasible to use WebSockets through an embedded browser widget? - What are the use cases requiring WebSockets excluisively? - Given the better performance and ligher resource usage for normal sockets, could the service host consider supporting normal sockets in addition to WebSockets? Richard Gaskin FourthWorld.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
Re: Websockets ... again.
i'm interested in client side, especially on mobile. we have an app that is in the wild that would be much better if we could stop pinging the server every five seconds. On Fri, Apr 26, 2024 at 4:10 PM Tom Glod via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Folks, > > Can we get a measure again as to the interest in web sockets implementation > in livecode? > As far as I know we still do not have one that is available or able to be > contributed to, > I'd be willing to put in some engineering time if there was help from > others available. > Here are the full specs. > https://websockets.spec.whatwg.org/ > I have no idea how long this would take > But I can see that one day in the not too distant future, it will no longer > be optional. > Thanks, > Tom > ___ > 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 > -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
Websockets ... again.
Hi Folks, Can we get a measure again as to the interest in web sockets implementation in livecode? As far as I know we still do not have one that is available or able to be contributed to, I'd be willing to put in some engineering time if there was help from others available. Here are the full specs. https://websockets.spec.whatwg.org/ I have no idea how long this would take But I can see that one day in the not too distant future, it will no longer be optional. Thanks, Tom ___ 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
Re: websockets...anything?
i'm also more interested in using lc as a client on mobes than as a server. On Wed, May 24, 2023 at 8:48 AM Mike Kerner wrote: > > yeah, i'm off the forums, permanently. i dumped my account, and i'm > not going back. > anyway, i'm not opposed to teaming up. i started reading the RFC, and > then decided to ask, instead. > i also asked chatgpt to help write some code. it was not only > unhelpful, it made up crap that was complete BS. then it tried to > point me to "mergWebSocket", until I called BS, again, and it finally > said "oh, sorry, no bueño" > > On Wed, May 24, 2023 at 5:43 AM Dan Brown via use-livecode > wrote: > > > > You could use STDIN / STDOUT from livecode to communicate with this > > websocket server > > > > https://github.com/joewalnes/websocketd > > > > On Wed, 24 May 2023, 01:28 Tom Glod via use-livecode, < > > use-livecode@lists.runrev.com> wrote: > > > > > Check out this forum post. > > > > > > https://forums.livecode.com/viewtopic.php?t=37672=221502 > > > > > > On Tue, May 23, 2023 at 8:24 PM Tom Glod wrote: > > > > > > > Nope. > > > > > > > > I'm wondering how long it would take to go look at specs and implement > > > it. > > > > Anyone in for a team effort? and we get it done without waiting for > > > > someone else to do it? > > > > Or is there a reason why it hasn't been done in all the years that web > > > > sockets have been around? > > > > Shrug. > > > > > > > > On Sat, May 20, 2023 at 9:24 AM Mike Kerner via use-livecode < > > > > use-livecode@lists.runrev.com> wrote: > > > > > > > >> any news from anyone on lc+websockets? > > > >> > > > >> -- > > > >> On the first day, God created the heavens and the Earth > > > >> On the second day, God created the oceans. > > > >> On the third day, God put the animals on hold for a few hours, > > > >>and did a little diving. > > > >> And God said, "This is good." > > > >> ___ > > > >> 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 > > > > > ___ > > 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 > > > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, >and did a little diving. > And God said, "This is good." -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
Re: websockets...anything?
yeah, i'm off the forums, permanently. i dumped my account, and i'm not going back. anyway, i'm not opposed to teaming up. i started reading the RFC, and then decided to ask, instead. i also asked chatgpt to help write some code. it was not only unhelpful, it made up crap that was complete BS. then it tried to point me to "mergWebSocket", until I called BS, again, and it finally said "oh, sorry, no bueño" On Wed, May 24, 2023 at 5:43 AM Dan Brown via use-livecode wrote: > > You could use STDIN / STDOUT from livecode to communicate with this > websocket server > > https://github.com/joewalnes/websocketd > > On Wed, 24 May 2023, 01:28 Tom Glod via use-livecode, < > use-livecode@lists.runrev.com> wrote: > > > Check out this forum post. > > > > https://forums.livecode.com/viewtopic.php?t=37672=221502 > > > > On Tue, May 23, 2023 at 8:24 PM Tom Glod wrote: > > > > > Nope. > > > > > > I'm wondering how long it would take to go look at specs and implement > > it. > > > Anyone in for a team effort? and we get it done without waiting for > > > someone else to do it? > > > Or is there a reason why it hasn't been done in all the years that web > > > sockets have been around? > > > Shrug. > > > > > > On Sat, May 20, 2023 at 9:24 AM Mike Kerner via use-livecode < > > > use-livecode@lists.runrev.com> wrote: > > > > > >> any news from anyone on lc+websockets? > > >> > > >> -- > > >> On the first day, God created the heavens and the Earth > > >> On the second day, God created the oceans. > > >> On the third day, God put the animals on hold for a few hours, > > >>and did a little diving. > > >> And God said, "This is good." > > >> ___ > > >> 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 > > > ___ > 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 -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
Re: websockets...anything?
You could use STDIN / STDOUT from livecode to communicate with this websocket server https://github.com/joewalnes/websocketd On Wed, 24 May 2023, 01:28 Tom Glod via use-livecode, < use-livecode@lists.runrev.com> wrote: > Check out this forum post. > > https://forums.livecode.com/viewtopic.php?t=37672=221502 > > On Tue, May 23, 2023 at 8:24 PM Tom Glod wrote: > > > Nope. > > > > I'm wondering how long it would take to go look at specs and implement > it. > > Anyone in for a team effort? and we get it done without waiting for > > someone else to do it? > > Or is there a reason why it hasn't been done in all the years that web > > sockets have been around? > > Shrug. > > > > On Sat, May 20, 2023 at 9:24 AM Mike Kerner via use-livecode < > > use-livecode@lists.runrev.com> wrote: > > > >> any news from anyone on lc+websockets? > >> > >> -- > >> On the first day, God created the heavens and the Earth > >> On the second day, God created the oceans. > >> On the third day, God put the animals on hold for a few hours, > >>and did a little diving. > >> And God said, "This is good." > >> ___ > >> 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 > ___ 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
Re: websockets...anything?
Check out this forum post. https://forums.livecode.com/viewtopic.php?t=37672=221502 On Tue, May 23, 2023 at 8:24 PM Tom Glod wrote: > Nope. > > I'm wondering how long it would take to go look at specs and implement it. > Anyone in for a team effort? and we get it done without waiting for > someone else to do it? > Or is there a reason why it hasn't been done in all the years that web > sockets have been around? > Shrug. > > On Sat, May 20, 2023 at 9:24 AM Mike Kerner via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> any news from anyone on lc+websockets? >> >> -- >> On the first day, God created the heavens and the Earth >> On the second day, God created the oceans. >> On the third day, God put the animals on hold for a few hours, >>and did a little diving. >> And God said, "This is good." >> ___ >> 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
Re: websockets...anything?
Nope. I'm wondering how long it would take to go look at specs and implement it. Anyone in for a team effort? and we get it done without waiting for someone else to do it? Or is there a reason why it hasn't been done in all the years that web sockets have been around? Shrug. On Sat, May 20, 2023 at 9:24 AM Mike Kerner via use-livecode < use-livecode@lists.runrev.com> wrote: > any news from anyone on lc+websockets? > > -- > On the first day, God created the heavens and the Earth > On the second day, God created the oceans. > On the third day, God put the animals on hold for a few hours, >and did a little diving. > And God said, "This is good." > ___ > 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
websockets...anything?
any news from anyone on lc+websockets? -- On the first day, God created the heavens and the Earth On the second day, God created the oceans. On the third day, God put the animals on hold for a few hours, and did a little diving. And God said, "This is good." ___ 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
LC and Websockets
Greetings! I've been looking around the boards and whatnot and see there has been some discussion about implementing web sockets in LiveCode. Has anyone come up with a library or a way to do this effectively for the Big 4 (Windows, Mac, iOS and Android)? Thanks in advance, Dan ___ 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
Re: Websockets
Thank You Mark for the hint. I will ask him about it. Richard, I hear what you are saying, its not absolutely necessary to get things done. Its just I am researching the most efficient mode of communication between a LC stack and a binary written in Go. A lot of Go Libraries have websocket support. So naturally I wanted to test it as part of my research. I'm using LC as a UI layer for a backend written in Go (needed insane concurrency for accessing web apis on a separate CPU process and core and only do UI with LC.). This is still a research piece at the moment, not implementing anything yet. Thanks for your thoughts. On Wed, Oct 21, 2020 at 1:01 PM Mark Wieder via use-livecode < use-livecode@lists.runrev.com> wrote: > On 10/21/20 7:09 AM, Tom Glod via use-livecode wrote: > > Hi Livecoders, > > > > Does anyone know if there are any plans for introducing websockets to > > livecode? > > > > Or if there are any working 3rd party implementations that are available? > > > > its been a lot of years. > > > > Thanks, > > > > Charles Warwick has something in the oven. Might be worth pinging him to > see what the status of that is. > > -- > Mark Wieder > ahsoftw...@gmail.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 > -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 ___ 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
Re: Websockets
On 10/21/20 7:09 AM, Tom Glod via use-livecode wrote: Hi Livecoders, Does anyone know if there are any plans for introducing websockets to livecode? Or if there are any working 3rd party implementations that are available? its been a lot of years. Thanks, Charles Warwick has something in the oven. Might be worth pinging him to see what the status of that is. -- Mark Wieder ahsoftw...@gmail.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
Re: Websockets
Tom Glod wrote: > Does anyone know if there are any plans for introducing websockets > to livecode? I've not seen any indication of a commitment to add websockets to LC. Websockets were added to browsers to provide a constrained way to allow persistent connections without exposing web pages to regular sockets. Since LC already supports regular sockets, even secure sockets, the value of websockets appears limited to attempting to use web services for the the provider has expressed a desire that they only be accessed by web pages (if they want to support native clients why not also use regular sockets?). Is there another use-case I haven't considered? I've found myself wanting this myself now and then, but I have to admit mostly just for the sake of completeness; I haven't come across a specific need for it in the work I've been doing. If you have it would be valuable to learn the details so we can better assess how it may be prioritized, or perhaps toss some funding together for an implementation. > Or if there are any working 3rd party implementations that are > available? LC Builder was delivered as the bridge for writing our own scripting interfaces for binary APKs. This would seem a good fit for that, no? > its been a lot of years. Since what? -- Richard Gaskin Fourth World Systems Software Design and Development for the Desktop, Mobile, and the Web ambassa...@fourthworld.comhttp://www.FourthWorld.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
Websockets
Hi Livecoders, Does anyone know if there are any plans for introducing websockets to livecode? Or if there are any working 3rd party implementations that are available? its been a lot of years. Thanks, -- Tom Glod Founder & Developer MakeShyft R.D.A (www.makeshyft.com) Mobile:647.562.9411 ___ 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
Re: Websockets Problem on LiveCode
> > Hey Todd, did you get this figured out? > > ___ 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
Re: Websockets Problem on LiveCode
> Todd wrote: > I assume that it is a memory leaking error. Has anyone had this problem of > calling LiveCode function from a JavaScript function in the browser?? This > is a HUGE problem for us as the app cannot be shipped. Libbrowser eats on desktop up to 5 MByte of memory per second. Bug #20012. ___ 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
Re: Websockets Problem on LiveCode
Hi Todd, Did you try the sample LC stack that I sent you with the socket external? It allows you to send basic websocket messages to a server. If you did try it, what happened? The beta version should work on Windows, Mac and iOS (Android version is easy to add if needed). Regards, Charles > On 27 Dec 2018, at 3:47 pm, Todd Fabacher via use-livecode > wrote: > > This is a 911 call for HELP from anyone. > > We are using a Socket IO server. We tried using the web browser to > send websockets messages...no problems. > > but when we listen and receive the websocket message, that is where the > problem is created. If we don't call LiveCode from the web browser, we > don't have any issues. > > But as soon as the browser calls a LiveCode function from Javascript the > app is crashing in both iOS and Android. Sometime after 10 mins, sometimes > after 20 mins - but it never makes it over an hour. > > I assume that it is a memory leaking error. Has anyone had this problem of > calling LiveCode function from a JavaScript function in the browser?? This > is a HUGE problem for us as the app cannot be shipped. > > Charles, you said you had a solution, but we could not get it to work. > Maybe we were doing something wrong and you could point us in the right > direction. > > Thanks for any help, > > Todd > ___ > 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
Websockets Problem on LiveCode
This is a 911 call for HELP from anyone. We are using a Socket IO server. We tried using the web browser to send websockets messages...no problems. but when we listen and receive the websocket message, that is where the problem is created. If we don't call LiveCode from the web browser, we don't have any issues. But as soon as the browser calls a LiveCode function from Javascript the app is crashing in both iOS and Android. Sometime after 10 mins, sometimes after 20 mins - but it never makes it over an hour. I assume that it is a memory leaking error. Has anyone had this problem of calling LiveCode function from a JavaScript function in the browser?? This is a HUGE problem for us as the app cannot be shipped. Charles, you said you had a solution, but we could not get it to work. Maybe we were doing something wrong and you could point us in the right direction. Thanks for any help, Todd ___ 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
Re: LiveCode and Websockets
Charles, A WebSockets external would be very beneficial for everyone doing web stuff from LC. I am looking forward to checking it out when it is released. :-) Thanks a lot for working on this. Cheers andre On 11/26/2018 6:24 AM, Charles Warwick via use-livecode wrote: Hi Bob, The external is still in development, so I have not yet uploaded any information or documentation to the web. I am happy to send you the latest beta version along with a few sample scripts if you are interested, just send me an e-mail directly. Regards, Charles On 25 Nov 2018, at 12:44 am, "b...@bobhall.net" wrote: Charles, I would like to find out more about your socket external specifically for websockets. Can you point me to where I can find out about the socket external? Thanks, Bob Hall On Nov 23, 2018, at 1:10 AM, Charles Warwick via use-livecode wrote: Hi Todd, Depending on what platforms you need to support, I have a socket external for LiveCode that includes the ability to use websockets. Cheers, Charles ___ 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
Re: LiveCode and Websockets
Hi Bob, The external is still in development, so I have not yet uploaded any information or documentation to the web. I am happy to send you the latest beta version along with a few sample scripts if you are interested, just send me an e-mail directly. Regards, Charles > On 25 Nov 2018, at 12:44 am, "b...@bobhall.net" wrote: > > Charles, > > I would like to find out more about your socket external specifically for > websockets. Can you point me to where I can find out about the socket > external? > > Thanks, > Bob Hall > >> On Nov 23, 2018, at 1:10 AM, Charles Warwick via use-livecode >> wrote: >> >> Hi Todd, >> >> Depending on what platforms you need to support, I have a socket external >> for LiveCode that includes the ability to use websockets. >> >> Cheers, >> >> Charles > ___ 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
Re: LiveCode and Websockets
Thanks Charles for the reply. Hope all is going well with you. Where can I test the WebSocket external? I will need it for iOS, Android, Mac, and Windows. Can you email me directly as we are time sensitive on this please. We have the server up and running. Socket.io is the BEST in the market and can deal with 10,000+ simultaneous connections with Node.js as the server. Also, thanks, Tom. I looked at this and what it does is create a bridge between LC and a web browser JavaScript that you add to the form. This is a GREAT workaround if we can find our own controller. I see they need some more Javascript code to manage all the different callback and error trapping functionality, but it is a workable solution we also had considered. It is NOT as flexible as an external, but we will improve it to make it work to keep it as a backup. Thanks guys, Todd Fabacher ___ 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
Re: LiveCode and Websockets
Charles, I would like to find out more about your socket external specifically for websockets. Can you point me to where I can find out about the socket external? Thanks, Bob Hall > On Nov 23, 2018, at 1:10 AM, Charles Warwick via use-livecode > wrote: > > Hi Todd, > > Depending on what platforms you need to support, I have a socket external for > LiveCode that includes the ability to use websockets. > > Cheers, > > Charles ___ 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
Re: LiveCode and Websockets
ps > requires websocketd to go along with it. On Fri, Nov 23, 2018 at 1:46 AM Tom Glod wrote: > Todd, this was posted here a little while ago..haven't tested it, but > apparently its websockets for livecode. Let us know how it goes. > > https://github.com/samansjukur/wslc > > On Fri, Nov 23, 2018 at 1:10 AM Charles Warwick via use-livecode < > use-livecode@lists.runrev.com> wrote: > >> Hi Todd, >> >> Depending on what platforms you need to support, I have a socket external >> for LiveCode that includes the ability to use websockets. >> >> Cheers, >> >> Charles >> >> > On 23 Nov 2018, at 4:09 pm, Todd Fabacher via use-livecode < >> use-livecode@lists.runrev.com> wrote: >> > >> > We have hot a wall because we have an API that is ONLY accessible via a >> > call to Socket.io server using Websockets. >> > >> > Richard Gaskin, I remember you were looking into this last year, any >> > success from your research. >> > >> > It seems the best way would be to open a web browser and code the >> > communications using Javascript, which would then all a LiveCode >> function >> > on the callback. >> > >> > Any suggestions would be appreciated!! >> > >> > Much Thanks, >> > >> > --Todd >> > ___ >> > 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 >> > ___ 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
Re: LiveCode and Websockets
Todd, this was posted here a little while ago..haven't tested it, but apparently its websockets for livecode. Let us know how it goes. https://github.com/samansjukur/wslc On Fri, Nov 23, 2018 at 1:10 AM Charles Warwick via use-livecode < use-livecode@lists.runrev.com> wrote: > Hi Todd, > > Depending on what platforms you need to support, I have a socket external > for LiveCode that includes the ability to use websockets. > > Cheers, > > Charles > > > On 23 Nov 2018, at 4:09 pm, Todd Fabacher via use-livecode < > use-livecode@lists.runrev.com> wrote: > > > > We have hot a wall because we have an API that is ONLY accessible via a > > call to Socket.io server using Websockets. > > > > Richard Gaskin, I remember you were looking into this last year, any > > success from your research. > > > > It seems the best way would be to open a web browser and code the > > communications using Javascript, which would then all a LiveCode function > > on the callback. > > > > Any suggestions would be appreciated!! > > > > Much Thanks, > > > > --Todd > > ___ > > 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 > ___ 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
Re: LiveCode and Websockets
Hi Todd, Depending on what platforms you need to support, I have a socket external for LiveCode that includes the ability to use websockets. Cheers, Charles > On 23 Nov 2018, at 4:09 pm, Todd Fabacher via use-livecode > wrote: > > We have hot a wall because we have an API that is ONLY accessible via a > call to Socket.io server using Websockets. > > Richard Gaskin, I remember you were looking into this last year, any > success from your research. > > It seems the best way would be to open a web browser and code the > communications using Javascript, which would then all a LiveCode function > on the callback. > > Any suggestions would be appreciated!! > > Much Thanks, > > --Todd > ___ > 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
LiveCode and Websockets
We have hot a wall because we have an API that is ONLY accessible via a call to Socket.io server using Websockets. Richard Gaskin, I remember you were looking into this last year, any success from your research. It seems the best way would be to open a web browser and code the communications using Javascript, which would then all a LiveCode function on the callback. Any suggestions would be appreciated!! Much Thanks, --Todd ___ 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
Re: LiveCode and WebSockets
Thanks Pierre, I'm pretty sure I could make something like that work but it's a nasty kludge, I'm not in any hurry (busy with non-LiveCode projects at the moment anyway) and when I get around to looking at it, I want to do it properly. :) From: Pierre Sahores s...@sahores-conseil.com To: How to use LiveCode use-livecode@lists.runrev.com Sent: Tuesday, 9 July 2013, 0:56 Subject: Re: LiveCode and WebSockets 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 ___ 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
Re: LiveCode and WebSockets
Would you care to discuss the difference between websockets and the socketswe work with in livecode or point me to some basic information on the websocket implementation you think we could implement in pure livecode? What things would keep it from working very efficiently? I see you already have some good references. Proper websockets implement a protocol on top of standard TCP socket connections on port 80. I think you could write or port an implementation of this protocol directly using the sockets available in desktop LiveCode. For socket.io there are also other transports available (i.e. web sockets are emulated over some other transport). I think it might be possible to implement the XHR-polling transport in LiveCode, using load URL for the GET request (with the header set to keep the connection alive - it doesn't return anything until the server wants to send you something) and doing standard HTTP posts. What I don't know is whether LiveCode can actually do a POST request while you still have an async load operation running, or whether it will keep the HTTP connection alive as required by XHR-polling (a.k.a. long polling) rather than just timing out?? As for efficiency, LiveCode has pretty good performance because the language is very high level, so each line of code typically does quite a lot in native code in the engine underneath. Implementing a protocol is quite a low-level thing to do in such a high-level language, parsing/formatting all the messages in LiveCode directly is probably quite computationally expensive vs just putting/getting the content of those messages into/from a websocket object that handles the formatting/parsing for you in native code. Also, as Pierre said, you could kludge this through the browser too, using the socket.io client directly. That's going to be much, much less efficient though. Mark ___ 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
Re: LiveCode and WebSockets
Many thanks for this useful reference link Andrew Le 9 juil. 2013 à 02:32, Andrew Kluthe a écrit : I had read that, and found some other useful info here as well. https://github.com/LearnBoost/socket.io-spec Andrew -- 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
Re: LiveCode and WebSockets
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
Re: LiveCode and WebSockets
However, we don't have proper sockets support on mobile (without externals at least) I am mainly interested in desktop apps at the moment simply because we are doing most of our mobile apps as mobile web apps. However, this will change likely in the next few years if we were to see sockets and UI (resolution independence, etc) improvements on mobile. and websockets are very definitely not the same thing as standard sockets. I am having a hard time just finding straight forward info on the lower level websocket information. As of right now all the information I am finding is how to use websockets within this framework or that framework and nothing really about the differences between websockets and standard sockets. Also, socket programming in general (and in livecode) is new to me because up until now I have wrote most of my applications using http interfaces. Not having a non-blocking http client is really getting in the way of some of the things I want to do with livecode and I really would like realtime notifications, broadcasting, etc. Would you care to discuss the difference between websockets and the sockets we work with in livecode or point me to some basic information on the websocket implementation you think we could implement in pure livecode? What things would keep it from working very efficiently? Thanks for taking the time to respond, Andrew On Mon, Jul 8, 2013 at 1:35 PM, Mark Wilcox m_p_wil...@yahoo.co.uk wrote: 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 -- 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
Re: LiveCode and WebSockets
FYI, there is a mobile sockets plugin being developed by Monte at the moment. The first beta has been in our hands for a couple of weeks. Sockets are fun, and very involved. You are the one implementing the protocols. Sometimes that's exactly what you need, and other times, it's extra work you weren't planning on. I think one of the things you will run into is that we do not have a good way to launch and manage secondary processes, yet. You might be better off to have your socket goodies running in livecode server, or in a separate instance of LC so that you have an easier time keeping all the communication, etc. straight. On Mon, Jul 8, 2013 at 2:51 PM, Andrew Kluthe and...@ctech.me wrote: However, we don't have proper sockets support on mobile (without externals at least) I am mainly interested in desktop apps at the moment simply because we are doing most of our mobile apps as mobile web apps. However, this will change likely in the next few years if we were to see sockets and UI (resolution independence, etc) improvements on mobile. and websockets are very definitely not the same thing as standard sockets. I am having a hard time just finding straight forward info on the lower level websocket information. As of right now all the information I am finding is how to use websockets within this framework or that framework and nothing really about the differences between websockets and standard sockets. Also, socket programming in general (and in livecode) is new to me because up until now I have wrote most of my applications using http interfaces. Not having a non-blocking http client is really getting in the way of some of the things I want to do with livecode and I really would like realtime notifications, broadcasting, etc. Would you care to discuss the difference between websockets and the sockets we work with in livecode or point me to some basic information on the websocket implementation you think we could implement in pure livecode? What things would keep it from working very efficiently? Thanks for taking the time to respond, Andrew On Mon, Jul 8, 2013 at 1:35 PM, Mark Wilcox m_p_wil...@yahoo.co.uk wrote: 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
Re: LiveCode and WebSockets
On 7/8/13 11:51 AM, Andrew Kluthe wrote: However, we don't have proper sockets support on mobile (without externals at least) I am mainly interested in desktop apps at the moment simply because we are doing most of our mobile apps as mobile web apps. However, this will change likely in the next few years if we were to see sockets and UI (resolution independence, etc) improvements on mobile. and websockets are very definitely not the same thing as standard sockets. I am having a hard time just finding straight forward info on the lower level websocket information. As of right now all the information I am finding is how to use websockets within this framework or that framework and nothing really about the differences between websockets and standard sockets. Hi Andrew, Maybe this will help some: http://en.wikipedia.org/wiki/WebSocket Phil Davis Also, socket programming in general (and in livecode) is new to me because up until now I have wrote most of my applications using http interfaces. Not having a non-blocking http client is really getting in the way of some of the things I want to do with livecode and I really would like realtime notifications, broadcasting, etc. Would you care to discuss the difference between websockets and the sockets we work with in livecode or point me to some basic information on the websocket implementation you think we could implement in pure livecode? What things would keep it from working very efficiently? Thanks for taking the time to respond, Andrew On Mon, Jul 8, 2013 at 1:35 PM, Mark Wilcox m_p_wil...@yahoo.co.uk wrote: 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 -- Phil Davis ___ 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
Re: LiveCode and WebSockets
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
Re: LiveCode and WebSockets
Thanks Phil, I had read that, and found some other useful info here as well. https://github.com/LearnBoost/socket.io-spec Andrew On Mon, Jul 8, 2013 at 6:56 PM, Pierre Sahores s...@sahores-conseil.comwrote: 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 -- 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
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
Re: LiveCode and WebSockets
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