File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ The WebsocketServer can be initialized with the below parameters.
5959
6060* ` key ` * - If using SSL, this is the path to the key.
6161
62- * ` cert ` * - If using SSL, this is the path to the certificate.
62+ * ` cert ` * - If using SSL, this is the path to the certificate.
6363
6464
6565### Properties
@@ -78,6 +78,9 @@ The WebsocketServer can be initialized with the below parameters.
7878| ` set_fn_message_received() ` | Sets a callback function that will be called when a ` client ` sends a message | function | None |
7979| ` send_message() ` | Sends a ` message ` to a specific ` client ` . The message is a simple string. | client, message | None |
8080| ` send_message_to_all() ` | Sends a ` message ` to ** all** connected clients. The message is a simple string. | message | None |
81+ | ` shutdown_gracefully() ` | Shutdown server by sending a websocket CLOSE handshake to all connected clients. | None | None |
82+ | ` shutdown_abruptly() ` | Shutdown server without sending any websocket CLOSE handshake. | None | None |
83+
8184
8285
8386### Callback functions
You can’t perform that action at this time.
0 commit comments