Stage Restart
stage_restartRestore a stage server instance after code modifications by restarting it using its saved configuration. This ensures correct listener reconnection and avoids losing system registry listeners.
Instructions
Stop the stage server and start it again the way it was started (the same scenes folder, port, host, footage folder and esbuild), then wait until it answers. Use it after changing the server's code; never kill the process by hand (Stop-Process, taskkill, kill), which loses the registry and the listeners. Picks the server by port or scenes, or the only one. Refused while a page on that server is in VR, unless now=True: the person hears " wants to restart the room server; it waits until you leave VR" in the headset, and you wait for vr_exit (stage_listen or stage_events) and call again, or ask them (stage_ask) and pass now=True on a yes. who= your name as the headset shows it. Every listener reconnects by itself (stage_listen again; the ear does it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | ||
| who | No | ||
| port | No | ||
| scenes | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |