Isolated Web Apps

11 views
Skip to first unread message

John

unread,
Aug 2, 2026, 2:35:52 PM (11 days ago) Aug 2
to newspeak...@googlegroups.com
Recently I was able to get the Newspeak IDE running as an Isolated Web App. As such, it has access to Chrome's implementation of Direct Sockets: TCPSockets, UDPSockets, their server socket counterparts, even multi-casting (whatever that is).

This feature is a WICG proposal and only implemented in chromium. The thing about IWA's is they are not available from the "drive by" web. They must be distributed as a signed web bundle. Under development you can use the serve-newspeak server setup to run the IDE, but once bundled and installed, there is no need to start a local web server. It's exists as an icon on the desktop just like a PWA, but it runs completely locally.

I have also attached a bundle of the IDE that you can download and install and "should work". Then you too can have endless hours of programming joy with TCP Sockets. Otherwise I would need to duplicate the setup and share it via github which needs more work. The bundling part presents some special roadblocks that currently have me stumped :)

There is a telnet client example IWA here: https://github.com/GoogleChromeLabs/telnet-client.git. The readme explains a lot about IWA.

The Direct Sockets WICG page documents the various interfaces: https://wicg.github.io/direct-sockets/

Here is a video showing installation using the dev proxy option: https://youtu.be/SME3LLquCbQ
To use the attached bundle, you would follow the same steps but choose "Install IWA from Signed Web Bundle".

This video shows a Proof of Concept app that connects to a MUMPS database. The TCP protocol is implemented in a javascript library so not much socket programming required: https://youtu.be/-O7GAICtOOA This application is special in that it is deployed to javascript before bundling.

This video shows my barely functional TCPSockets library connecting to a netcat listener from the IDE: https://youtu.be/UwKTEg38CEA

Cheers
--
nsiwa.swbn
Reply all
Reply to author
Forward
0 new messages