diff options
author | Max Hilbrunner <mhilbrunner@users.noreply.github.com> | 2018-09-24 06:29:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 06:29:30 +0200 |
commit | aaef640b8c3e7c7c49aae11a1c8c9e606223fefd (patch) | |
tree | 384a64093351ad6c8db4e20fcde8b3403404e9fe /modules/websocket/lws_client.h | |
parent | 399910ddd82e84f078ebefb3ed2c51d2ef989235 (diff) | |
parent | df43b94e6ebaad30991e7b909f40cd89aee9d6fd (diff) |
Merge pull request #22383 from Faless/ws_close
Implement WebSocket close frame handling
Diffstat (limited to 'modules/websocket/lws_client.h')
-rw-r--r-- | modules/websocket/lws_client.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/lws_client.h b/modules/websocket/lws_client.h index 8850683cb5..1bbc19f352 100644 --- a/modules/websocket/lws_client.h +++ b/modules/websocket/lws_client.h @@ -46,7 +46,7 @@ class LWSClient : public WebSocketClient { public: Error connect_to_host(String p_host, String p_path, uint16_t p_port, bool p_ssl, PoolVector<String> p_protocol = PoolVector<String>()); Ref<WebSocketPeer> get_peer(int p_peer_id) const; - void disconnect_from_host(); + void disconnect_from_host(int p_code = 1000, String p_reason = ""); IP_Address get_connected_host() const; uint16_t get_connected_port() const; virtual ConnectionStatus get_connection_status() const; |