SqueakJS icon indicating copy to clipboard operation
SqueakJS copied to clipboard

Hourglass icon is infinitely rotate in a center.

Open bemoregt opened this issue 1 year ago • 2 comments

Hi, @tonyg @zot @jsparkes @timfel @krono

I have met this error when run your SqueakJS with my swikiswiki image.

My swiki image is well loaded to run webpage,

But, then a Hourglass icon is infinitely rotate in a center.

What's wrong to me ??

Thanks in advance. Best,

@bemoregt.

bemoregt avatar Aug 03 '24 00:08 bemoregt

Do you see any error messages in the browser console (e.g., F12 in Chrome)?

LinqLover avatar Aug 03 '24 00:08 LinqLover

Your "swiki image" likely is trying to start the swiki web server. That is not supported by SqueakJS because it runs in a web page itself so cannot be a server for other pages.

You can try to press cmd-. (command and period, or maybe alt-period) to interrupt the startup process, which may allow you to use the image interactively. But you won't be able to start the Swiki server.

codefrau avatar Aug 03 '24 01:08 codefrau

Closing for lack of response

codefrau avatar Sep 28 '24 23:09 codefrau

Thinking about this, some day someone might want to look at trying to proxy Squeak HTTP services with service workers using the technique illustrated here:

https://itnext.io/how-to-create-web-server-in-browser-ffaa371d2b53

(c.f. Nerd Sniping)

zot avatar Oct 01 '24 15:10 zot

Interesting idea. This would still only work in the same browser ... so you could browse the Swiki locally, but not from elsewhere.

Another idea would be to emulate a full TCP/IP stack and tunnel packets through some other form of transport. I actually did that and it's working to some extent, but not entirely complete or tested.

I had to do that myself because I could not find a JavaScript implementation of TCP/IP. If we had that it would be a lot simpler. Maybe if I turned it into a library, other people would complete it, but the utility seams limited (otherwise someone would have done it already I assume).

Compiling some C library to web assembly might be the way to go, but it's unclear how to connect that to an actual transport layer.

codefrau avatar Oct 01 '24 21:10 codefrau