I'm trying, but I can't seem to.
I have this, but it isn't working, probably because it isn't doing anything on localhost, but I can't figure out where it is.
You need to run /wsserver minecraft-server.warpedwartwars.repl.co
You can: pip install git+https://github.com/BluCodeGH/bedrock
You can write your own websocket server (those links are provided as a reference), the protocol isn't the most complicated...
The problem is that JSFunction runs cilentside code, not serverside. You can't create a server with that.
If you're modifying the world level file while the game is running, that'll probably create some interesting race conditions. If the game saves the file at the end, then your new save probably won't even register. If you want to edit it it while the game isn't running though, that could work.
I use Bing on Edge, really because that's all I have. (I'd really like to get Firefox, but my computer can't write to its long-term memory, so I'm not sure it'll install right.)
Anyways, like I said, Serial Ports are more for Microcontroller programming rather than making Online Servers or other stuff.
I think you are getting confused about the word "Serial" and "Port". You see, a "Port" can be the side of an object like the ISS or a ship, can be an Online Port which connects you to an online server, and a Port as in a Microcontroller port.
"Serial" can be an ID number for a product, a term used online, or a term used in Microcontroller programming.
In this case, both words are terms of Microcontroller programming.