mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
removed _state suffix from all ws events
This commit is contained in:
@@ -75,7 +75,7 @@ class PstClient:
|
||||
if msg.type != aiohttp.WSMsgType.TEXT:
|
||||
raise PstError(f"Unexpected message type: {msg!r}")
|
||||
(event_type, event) = htserver.parse_ws_event(msg.data)
|
||||
if event_type == "storage_state":
|
||||
if event_type == "storage":
|
||||
if not event["data"]["write_allowed"]:
|
||||
raise PstError("Write is not allowed")
|
||||
path = event["data"]["path"]
|
||||
|
||||
Reference in New Issue
Block a user