mdopen
mdopen copied to clipboard
send notification to user tabs about server shutdown
Relates: https://github.com/immanelg/mdopen/issues/22
Send notification to user tabs on server shutdown (ctrl + c signal)
- If
window.close()doesn't work, maybe give up and ditch that idea then? It wouldn't be worth it to spend big effort on this - It would be reasonable to disable this behaviour by default because it's not expected
- It should not be behind the live-reload flag
- WebSocket implementation changes are good and can be merged separately, but maybe this should all be rewritten with an async http library so it doesn't matter anyway