8000 allow access to setExtraHeaders and setReconnectInterval for SocketIO… · smartcoder00/arduinoWebSockets@27f86a1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 27f86a1

Browse files
committed
allow access to setExtraHeaders and setReconnectInterval for SocketIOclient
fix: Links2004#690
1 parent 860ac9d commit 27f86a1

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/SocketIOclient.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ bool SocketIOclient::isConnected(void) {
8585
return WebSocketsClient::isConnected();
8686
}
8787

88+
void SocketIOclient::setExtraHeaders(const char * extraHeaders) {
89+
return WebSocketsClient::setExtraHeaders(extraHeaders);
90+
}
91+
92+
void SocketIOclient::setReconnectInterval(unsigned long time) {
93+
return WebSocketsClient::setReconnectInterval(time);
94+
}
95+
8896
/**
8997
* send text data to client
9098
* @param num uint8_t client id

src/SocketIOclient.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ class SocketIOclient : protected WebSocketsClient {
7575
bool send(socketIOmessageType_t type, const char * payload, size_t length = 0);
7676
bool send(socketIOmessageType_t type, String & payload);
7777

78+
void setExtraHeaders(const char * extraHeaders = NULL);
79+
void setReconnectInterval(unsigned long time);
80+
7881
void loop(void);
7982

8083
void configureEIOping(bool disableHeartbeat = false);

0 commit comments

Comments
 (0)
0