SmingHub / Sming

Sming - powerful open source framework simplifying the creation of embedded C++ applications.
https://sming.readthedocs.io
GNU Lesser General Public License v3.0
1.45k stars 349 forks source link

Minor websocket client issues #2827

Closed mikee47 closed 1 week ago

mikee47 commented 1 week ago

This PR adds a few fixes for websockets I seem to have kicking about.

Check return value from http connect()

I can force this to fail by calling 'connect' twice in succession, though I do notice a disparity here. If the http connection is 'processing' then WebsocketClient::connect returns false; however, HttpClientConnection::connect returns true in this situation.

TODO:

slaff commented 1 week ago

@mikee47 can you rebase this PR?