mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Custom headers support in WebSocketClient.
This commit also converts all PoolVector<String> parameters to `const Vector<String>` in both WebSocketServer and WebSocketClient.
This commit is contained in:
parent
c723a8b6aa
commit
67a4c3033b
10 changed files with 30 additions and 22 deletions
|
@ -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 = "");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue