dsriseah / ursys

an opinionated javascript library for prototyping realtime web apps
1 stars 2 forks source link

Detached Server Mode for URNet Messages #11

Closed dsriseah closed 4 months ago

dsriseah commented 4 months ago

This PR add the ability to run the server in the background for the http server + client! It is tested to work for both localhost and Digital Ocean (DO) in both VSCODE's integrated terminal and a regular terminal.

Testing Background Server

This will run the server in the background, and you can visit it from a browser.

Open two or three browser windows and open the javascript console to confirm operation. The test client app self-closes out after 360 seconds. To monitor the output of the server as clients connect/disconnect, use tail -f nohup.out

Technical Information

To make this work, I had to

[!WARNING] Fixes in this PR are limited to serve-http, and have not been tested with serve-uds or serve-wss modules