sphinx-doc / sphinx-autobuild

Watch a Sphinx directory and rebuild the documentation when a change is detected. Also includes a hot-reload web server.
MIT License
523 stars 75 forks source link

WebSocket hot reload doesn’t work with host 0.0.0.0 #165

Open holesch opened 3 weeks ago

holesch commented 3 weeks ago

When using --host 0.0.0.0 to bind to all network interfaces, then hot reload doesn't work anymore. I can see this error in the browser:

Firefox can’t establish a connection to the server at ws://0.0.0.0:8000/websocket-reload.

This broke with version 2024.04.13. I'm guessing with commit 3a32d1b ("Implement hot reloading with websockets").