@@ -47,15 +47,15 @@ class SocketIOclient : protected WebSocketsClient {
47
47
SocketIOclient (void );
48
48
virtual ~SocketIOclient (void );
49
49
50
- void begin (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , const char * protocol = " arduino" );
51
- void begin (String host, uint16_t port, String url = " /socket.io/?EIO=3" , String protocol = " arduino" );
50
+ void begin (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , const char * protocol = " arduino" , uint32_t pingInterval = 60 * 1000 , uint32_t pongTimeout = 90 * 1000 , uint8_t disconnectTimeoutCount = 5 );
51
+ void begin (String host, uint16_t port, String url = " /socket.io/?EIO=3" , String protocol = " arduino" , uint32_t pingInterval = 60 * 1000 , uint32_t pongTimeout = 90 * 1000 , uint8_t disconnectTimeoutCount = 5 );
52
52
53
53
#ifdef HAS_SSL
54
- void beginSSL (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , const char * protocol = " arduino" );
55
- void beginSSL (String host, uint16_t port, String url = " /socket.io/?EIO=3" , String protocol = " arduino" );
54
+ void beginSSL (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , const char * protocol = " arduino" , uint32_t pingInterval = 60 * 1000 , uint32_t pongTimeout = 90 * 1000 , uint8_t disconnectTimeoutCount = 5 );
55
+ void beginSSL (String host, uint16_t port, String url = " /socket.io/?EIO=3" , String protocol = " arduino" , uint32_t pingInterval = 60 * 1000 , uint32_t pongTimeout = 90 * 1000 , uint8_t disconnectTimeoutCount = 5 );
56
56
#ifndef SSL_AXTLS
57
- void beginSSLWithCA (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , const char * CA_cert = NULL , const char * protocol = " arduino" );
58
- void beginSSLWithCA (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , BearSSL::X509List * CA_cert = NULL , const char * protocol = " arduino" );
57
+ void beginSSLWithCA (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , const char * CA_cert = NULL , const char * protocol = " arduino" , uint32_t pingInterval = 60 * 1000 , uint32_t pongTimeout = 90 * 1000 , uint8_t disconnectTimeoutCount = 5 );
58
+ void beginSSLWithCA (const char * host, uint16_t port, const char * url = " /socket.io/?EIO=3" , BearSSL::X509List * CA_cert = NULL , const char * protocol = " arduino" , uint32_t pingInterval = 60 * 1000 , uint32_t pongTimeout = 90 * 1000 , uint8_t disconnectTimeoutCount = 5 );
59
59
void setSSLClientCertKey (const char * clientCert = NULL , const char * clientPrivateKey = NULL );
60
60
void setSSLClientCertKey (BearSSL::X509List * clientCert = NULL , BearSSL::PrivateKey * clientPrivateKey = NULL );
61
61
#endif
0 commit comments