summaryrefslogtreecommitdiffstats
path: root/modules/websocket/emws_peer.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/emws_peer.h
parent399910ddd82e84f078ebefb3ed2c51d2ef989235 (diff)
downloadredot-engine-5d91e87c64f757fb1c20f43a0a30db3c73073625.tar.gz
Implement WebSocket close notify.
Diffstat (limited to 'modules/websocket/emws_peer.h')
-rw-r--r--modules/websocket/emws_peer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/websocket/emws_peer.h b/modules/websocket/emws_peer.h
index e06f725265..a4b2c8f50b 100644
--- a/modules/websocket/emws_peer.h
+++ b/modules/websocket/emws_peer.h
@@ -63,7 +63,7 @@ public:
virtual Error put_packet(const uint8_t *p_buffer, int p_buffer_size);
virtual int get_max_packet_size() const { return PACKET_BUFFER_SIZE; };
- virtual void close();
+ virtual void close(int p_code = 1000, String p_reason = "");
virtual bool is_connected_to_host() const;
virtual IP_Address get_connected_host() const;
virtual uint16_t get_connected_port() const;