[Update] WebSocket configuration: Change host to 127.0.0.1 and port to 2231; refactor WebSocket server initialization and message handling

This commit is contained in:
misyaguziya
2025-05-18 15:20:27 +09:00
parent ed5ebcee90
commit e7304247c7
4 changed files with 88 additions and 44 deletions

View File

@@ -14,7 +14,7 @@ class WebSocketServer:
- メッセージのブロードキャスト機能
- GUIスレッド等からメッセージ送信するためのキュー
"""
def __init__(self, host: str='localhost', port: int=8765):
def __init__(self, host: str='127.0.0.1', port: int=8765):
"""
サーバーのホスト名とポートを指定して初期化します。
"""