Closed ashutosh7777 closed 2 years ago
As you're using ESP32, it's better to test using the original ArduinoWebsockets library upon which this library is based.
If there is problem, it's better to post the issue on that ArduinoWebsockets library.
I'm closing this issue now and appreciate if you can post the link to your new issue.
Good Luck,
For the record, answered in ArduinoWebsockets
When the client object goes out of scope, the connection is closed. If you want to keep receiving/sending messages, you should not let the object go out of scope. Instead keep interacting with it until you want it closed. You could check the wiki for more information and advanced examples for handling multiple clients and so on.
i have uploaded esp32 server code from examples.
This is my program
PROBLEM IS Client gets connected to server but after delivering 1 msg it gets disconnected. i tgried another libraries client code works properly. while code keeps me disconnecting and doesnt receive any other msg.
any help will be great for us. thank you in advance