Add option to auto select a websocket port (#1628)

* option to auto select a websocket port

* keep default port

* add docs

* default port

* Update base_config.py

---------

Co-authored-by: Matthew Tancik <tancik@berkeley.edu>
This commit is contained in:
Ethan WeberandMatthew Tancik authored and GitHub committed 2023-03-17 15:53:27 -07:00
1 parent 9a01738b0e
commit b3f1153a78
3 files changed
+51 -10

No files matched your search

+4 -2
View File
@@ -135,8 +135,10 @@ class ViewerConfig(PrintableConfig):
"""The zmq port to connect to for communication. If None, find an available port."""
launch_bridge_server: bool = True
"""whether or not to launch the bridge server"""
websocket_port: Optional[int] = 7007
"""the default websocket port to connect to"""
websocket_port: Optional[int] = None
"""The websocket port to connect to. If None, find an available port."""
websocket_port_default: int = 7007
"""The default websocket port to connect to if websocket_port is not specified"""
ip_address: str = "127.0.0.1"
"""the ip address where the bridge server is running"""
num_rays_per_chunk: int = 32768