@@ -47,15 +47,15 @@ class SocketIOclient : protected WebSocketsClient {
4747 SocketIOclient (void );
4848 virtual ~SocketIOclient (void );
4949
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 );
5252
5353#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 );
5656#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 );
5959 void setSSLClientCertKey (const char * clientCert = NULL , const char * clientPrivateKey = NULL );
6060 void setSSLClientCertKey (BearSSL::X509List * clientCert = NULL , BearSSL::PrivateKey * clientPrivateKey = NULL );
6161#endif
0 commit comments