Zach Hoeken

Results 116 comments of Zach Hoeken

We're starting to get a bit off-track from the CORS discussion. I created issue #161 to discuss how to best implement the middleware functionality.

This is awesome. We are working on a v2.0 that will be more compatible with Psychic so hopefully it will work out of the box soon.

Closing these old issues, please re-open if needed.

I can definitely add this. I had support for it partially added, but wasn't sure that it was useful or not. I will re-add that back in and let you...

I'm looking at implementing this now, but the way its done with websockets and eventsource, the client list is kept in the handler object itself. If I was to implement...

Couldn't sleep, added in the callbacks: ```cpp //client connect/disconnect to a url // curl -i http://psychic.local/handler PsychicWebHandler *connectionHandler = new PsychicWebHandler(); connectionHandler->onRequest([](PsychicRequest *request) { return request->reply("OK"); }); connectionHandler->onOpen([](PsychicClient *client) {...

Its worth noting that it will only track clients to that specific url, so if you need to do something globally, use the server.onOpen and server.onClose instead

@zekageri unfortunately getting a disconnect event on requests is unlikely to happen for a couple reasons: * ESP-IDF only provides a connection open/close event at the server level, there is...

> Oh. Excuse my dumbness but i dont understand how should i add the handler to a url. If I manage to add this dc handler to a specific url...

> Doesnt the server free the socket on response? If I allocate some memory in the handler, when should i free it if the socket never freed? No, the server...