diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-10-08 20:13:24 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2019-10-09 13:53:04 +0200 |
commit | 67a4c3033bd4c5e6f61b5ff77709f60512392ab0 (patch) | |
tree | d20c5123fa2cf2f6ff3a4f3fba2138f1071cc955 /modules/websocket/websocket_client.h | |
parent | c723a8b6aa2e32f0c8b213303610a35d08b01e34 (diff) |
Custom headers support in WebSocketClient.
This commit also converts all PoolVector<String> parameters to
`const Vector<String>` in both WebSocketServer and WebSocketClient.
Diffstat (limited to 'modules/websocket/websocket_client.h')
-rw-r--r-- | modules/websocket/websocket_client.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/websocket/websocket_client.h b/modules/websocket/websocket_client.h index 8241914bd6..08fd6798fe 100644 --- a/modules/websocket/websocket_client.h +++ b/modules/websocket/websocket_client.h @@ -49,7 +49,7 @@ protected: static void _bind_methods(); public: - Error connect_to_url(String p_url, PoolVector<String> p_protocols = PoolVector<String>(), bool gd_mp_api = false); + Error connect_to_url(String p_url, const Vector<String> p_protocols = Vector<String>(), bool gd_mp_api = false, const Vector<String> p_custom_headers = Vector<String>()); void set_verify_ssl_enabled(bool p_verify_ssl); bool is_verify_ssl_enabled() const; @@ -57,7 +57,7 @@ public: void set_trusted_ssl_certificate(Ref<X509Certificate> p_cert); virtual void poll() = 0; - virtual Error connect_to_host(String p_host, String p_path, uint16_t p_port, bool p_ssl, PoolVector<String> p_protocol = PoolVector<String>()) = 0; + virtual 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>()) = 0; virtual void disconnect_from_host(int p_code = 1000, String p_reason = "") = 0; virtual IP_Address get_connected_host() const = 0; virtual uint16_t get_connected_port() const = 0; |