Skip to content

Commit edd0e20

Browse files
committed
Fix disconnect_clients_gracefully to take params 'status' and 'reason'
1 parent b1cc12e commit edd0e20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

websocket_server/websocket_server.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,13 +81,13 @@ def send_message_to_all(self, msg):
8181
self._multicast(msg)
8282

8383
def shutdown_gracefully(self, status=CLOSE_STATUS_NORMAL, reason=DEFAULT_CLOSE_REASON):
84-
self._shutdown_gracefully(status=CLOSE_STATUS_NORMAL, reason=DEFAULT_CLOSE_REASON)
84+
self._shutdown_gracefully(status, reason)
8585

8686
def shutdown_abruptly(self):
8787
self._shutdown_abruptly()
8888

89-
def disconnect_clients_gracefully(self):
90-
self._disconnect_clients_gracefully()
89+
def disconnect_clients_gracefully(self, status=CLOSE_STATUS_NORMAL, reason=DEFAULT_CLOSE_REASON):
90+
self._disconnect_clients_gracefully(status, reason)
9191

9292
def disconnect_clients_abruptly(self):
9393
self._disconnect_clients_abruptly()

0 commit comments

Comments
 (0)