summaryrefslogtreecommitdiff
path: root/modules/websocket/lws_client.h
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-09-23 21:14:20 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2018-09-24 01:50:37 +0200
commit5d91e87c64f757fb1c20f43a0a30db3c73073625 (patch)
tree29000bb4eabc80bb8f208d71bafd6291d9df9868 /modules/websocket/lws_client.h
parent399910ddd82e84f078ebefb3ed2c51d2ef989235 (diff)
Implement WebSocket close notify.
Diffstat (limited to 'modules/websocket/lws_client.h')
-rw-r--r--modules/websocket/lws_client.h2
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;