gilmaimon / ArduinoWebsockets

A library for writing modern websockets applications with Arduino (ESP8266 and ESP32)
GNU General Public License v3.0
482 stars 97 forks source link

How to disconnect web socket connection? #76

Closed ManpreetSingh241995 closed 4 years ago

ManpreetSingh241995 commented 4 years ago

Hi @gilmaimon and all other helpers I have successfully created the websocket connection using below snippet:- client.connect(websockets_connection_string);

But how do disconnect this connection manually, if i want to do in some scenario? Is there any way to diconnect the connection?

Thanks in advance :)

ManpreetSingh241995 commented 4 years ago

Hi everyone, Sorry I forgot to read the source code properly, i found there is a close method also in order to disconnect the connection. And it works perfectly.

Thank you so much