mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-31 12:56:11 +01:00
Appease black
This commit is contained in:
parent
75d3baccbd
commit
f1340f4f45
@ -17,9 +17,7 @@ class WebSocketHelper:
|
||||
def remove_client(self, client):
|
||||
self.clients.remove(client)
|
||||
|
||||
def send_message(
|
||||
self, client, event_type: str, data
|
||||
):
|
||||
def send_message(self, client, event_type: str, data):
|
||||
if client.check_auth():
|
||||
message = str(json.dumps({"event": event_type, "data": data}))
|
||||
client.write_message_helper(message)
|
||||
|
Loading…
x
Reference in New Issue
Block a user