mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
Sync Server - unwanted change for irrelevant part
This commit is contained in:
parent
6670af63e0
commit
6564a8891c
1 changed files with 3 additions and 2 deletions
|
|
@ -30,13 +30,14 @@ class WebSocketServer():
|
|||
WebSocketServer._instance = self
|
||||
self.client = None
|
||||
self.handlers = {}
|
||||
port = 8099
|
||||
|
||||
port = None
|
||||
websocket_url = os.getenv("WEBSOCKET_URL")
|
||||
if websocket_url:
|
||||
parsed = urllib.parse.urlparse(websocket_url)
|
||||
port = parsed.port
|
||||
if not port:
|
||||
port = 8099 # fallback
|
||||
port = 8098 # fallback
|
||||
|
||||
self.app = web.Application()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue