summaryrefslogtreecommitdiff
path: root/modules/websocket/wsl_client.h
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-11 08:28:47 +0200
committerGitHub <noreply@github.com>2019-10-11 08:28:47 +0200
commitbe446038bb8231a16c1f1a915bab89f1b7e45368 (patch)
treec40d28f088ed4844d9e1bb0e9848b415438e73f9 /modules/websocket/wsl_client.h
parentbe0da31f7a2e91b211b556ead5f1529f4427441a (diff)
parent2c557787c119ac629085cba2455132f5b82553dc (diff)
Merge pull request #32683 from Faless/ws/improve_pr
WebSocket improvements, SSL server, custom headers.
Diffstat (limited to 'modules/websocket/wsl_client.h')
-rw-r--r--modules/websocket/wsl_client.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/websocket/wsl_client.h b/modules/websocket/wsl_client.h
index 57dfd635b7..870be94a87 100644
--- a/modules/websocket/wsl_client.h
+++ b/modules/websocket/wsl_client.h
@@ -64,7 +64,7 @@ private:
String _key;
String _host;
- PoolVector<String> _protocols;
+ Vector<String> _protocols;
bool _use_ssl;
void _do_handshake();
@@ -72,7 +72,7 @@ private:
public:
Error set_buffers(int p_in_buffer, int p_in_packets, int p_out_buffer, int p_out_packets);
- Error connect_to_host(String p_host, String p_path, uint16_t p_port, bool p_ssl, PoolVector<String> p_protocol = PoolVector<String>());
+ Error connect_to_host(String p_host, String p_path, uint16_t p_port, bool p_ssl, const Vector<String> p_protocol = Vector<String>(), const Vector<String> p_custom_headers = Vector<String>());
int get_max_packet_size() const;
Ref<WebSocketPeer> get_peer(int p_peer_id) const;
void disconnect_from_host(int p_code = 1000, String p_reason = "");