This extension provide a WebSocket like API to build multiplayer game on the web (and hardware). It’s still very much a work in progress. Read below, it will not work as is in the editor.
The simulation support is rather clunky right now because it can’t be tested in game yet. However if you copy custom.js/loader.js into your generate repo, you’ll be able to talk to WSS.
@livcheerful now we need to make a Mahjong game in Arcade. (The traditional one obviously)
Maybe you could run a hash on the .js file and only run files that match the hash?
I also don’t see any blocks for it yet…but that obviously will come later.
I also realized that resetting the simulator on the Github pages using the reset button on the sim seems to break it. Only reloading the page seems to fix it.
Yes right now we don’t reset the websocket on reset, so we leak it and eventually it’s broken. I need to clean our “loader” story to be easier and a bit more robust. Also i need to document how to get the dev experience right.