When leaving the world, the WebSocket connected via /connect or /wsserver is automatically disconnected.
There is no mention of this in any changelog, so I assume it’s a bug.
To reproduce this issue, simply connect to any WebSocket and then leave the world, this problem does not occur in release (1.26.65) version.
in example attached script:
bun i
bun "./index.ts" in Minecraft:
/connect localhost:19122after leaving the world, the script will display disconected
Thank you for helping us improve Minecraft! We saved your files: