DaKaZ / esp8266-restclient

Arduino RESTful HTTP Request Library
MIT License
124 stars 26 forks source link

Questions about SSE event handler. #5

Closed ProximaB closed 6 years ago

ProximaB commented 6 years ago

Hi, I'm wondering if server sent events (SSE), will be covered in this repository? Thanks a lot for your work.

DaKaZ commented 6 years ago

Can you provide more detail, I am not familiar with SSE

ProximaB commented 6 years ago

Ok i will try to explain this. Server sent events enable server to push data in real time to the client, especially browser. Its only one way connection. The case is that this is working via HTTP and doesn't need any special protocol implementation. Service using that can still be called restfull [link]. I'am working on my university project, and while developing it i came up that i will need frequen update my arduino using GET. I have idea that when client send GET request, server subscribe him to SSE, and client just listining for this event. What do you think about it?

I found server sent event implementation. But in this case we need to handle these events. [link]

DaKaZ commented 6 years ago

It sounds like you are looking for Websockets or some other form of TCP based communication over HTTP. That is really not the core purpose of this library, sorry. This is just a simple library to fetch HTTP data from an SSL enabled server.