mirror of
https://github.com/Links2004/arduinoWebSockets.git
synced 2025-07-30 15:47:13 +02:00
feat(socketio): add disconnect
function
This commit is contained in:
@ -93,6 +93,10 @@ void SocketIOclient::setReconnectInterval(unsigned long time) {
|
||||
return WebSocketsClient::setReconnectInterval(time);
|
||||
}
|
||||
|
||||
void SocketIOclient::disconnect(void) {
|
||||
WebSocketsClient::disconnect();
|
||||
}
|
||||
|
||||
/**
|
||||
* send text data to client
|
||||
* @param num uint8_t client id
|
||||
|
@ -63,6 +63,7 @@ class SocketIOclient : protected WebSocketsClient {
|
||||
bool isConnected(void);
|
||||
|
||||
void onEvent(SocketIOclientEvent cbEvent);
|
||||
void disconnect(void);
|
||||
|
||||
bool sendEVENT(uint8_t * payload, size_t length = 0, bool headerToPayload = false);
|
||||
bool sendEVENT(const uint8_t * payload, size_t length = 0);
|
||||
|
Reference in New Issue
Block a user