Re: Telegram and JavaScript
By: John Dovey to All on Thu Apr 21 2022 16:08:34
JD> Telegram has just updated their Bit spec, and it's now possible to
JD> run/launch a JavaScript app directly from the client.
I'd be curious to know more about what this actually means. Got a link?
JD> I'm not much of a JavaScript person, but glancing quickly at the spec and
JD> some examples, it occurs to me that one of the gurus in the area could
JD> possibly port a lot of the functionality of SBBS across.
Porting a Synchronet JS module to some other JS environment means that basically
all of this becomes unavailable:
https://synchro.net/docs/jsobjs.html
The script needs to be updated to use whatever analagous things exist on the tar
get platform. That's fairly straightforward when it comes to stuff like the File
and Socket classes, the global methods, and some of the console methods, but wi
ll get trickier when you get into users, messages, files, etc.
The tricky stuff is often also the reason for the script existing in the first p
lace. If you're writing a script for Synchronet, there's a good chance it's goin
g to access a bunch of BBS-specific data that won't exist on some other platform
.
JD> This probably fits better in Future4Fido, but figured I'd mention here.
The FTN stuff might be easier to port, actually, but I'm trying to picture what
purpose it would serve when running ... in the Telegram app, I gather? Is it use
ful to run a binkp mailer inside that app, for example?
---
echicken
electronic chicken bbs - bbs.electronicchicken.com
---
■ Synchronet ■ electronic chicken bbs - bbs.electronicchicken.com
|