espressif / esp-protocols

Collection of ESP-IDF components related to networking protocols
181 stars 126 forks source link

Feat/websocket: begin end thread events (IDFGH-13507) #633

Closed bryghtlabs-richard closed 1 month ago

bryghtlabs-richard commented 1 month ago

Add two new events to signal the start and end of websocket thread operation.

Also update the websocket event handler documentation, as it was missing a few.

bryghtlabs-richard commented 1 month ago

The new events are useful for encapsulating all the other events. In my case, I'm using to to configure a thread-local storage value and destroying it once done.

david-cermak commented 1 month ago

The new events are useful for encapsulating all the other events. In my case, I'm using to to configure a thread-local storage value and destroying it once done.

Makes sense, thanks for explaining!