mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Implement WebSocket close notify.
This commit is contained in:
parent
399910ddd8
commit
5d91e87c64
18 changed files with 116 additions and 30 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue