You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while True:
try:
async with (
WebsocketServer(log=logger) as websocket_server,
serve(
my_ws_handler(websocket_server),
GeneralConfig.WS_SERVER_HOST,
5567,
ping_interval=None,
),
):
await asyncio.Future()
except Exception as exp:
global PREV_COUNT_CLIENTS_WS
print(websocket_server.rooms)
PREV_COUNT_CLIENTS_WS = 0
logger.error(str(exp))
logger.info('Restart server')
When my client disconnects, the server crashes due to the below fault. I had to restart the server, what are the alternatives? Error:
| websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)
The text was updated successfully, but these errors were encountered:
Hello, I use WebsocketServer from ypy-websockets:
When my client disconnects, the server crashes due to the below fault. I had to restart the server, what are the alternatives?
Error:
| websockets.exceptions.ConnectionClosedOK: received 1000 (OK); then sent 1000 (OK)
The text was updated successfully, but these errors were encountered: