Implementation of Server-Sent Events (SSE) in ESP-IDF

MicroController
Posts: 1680
Joined: Mon Oct 17, 2022 7:38 pm
Location: Europe, Germany

Re: Implementation of Server-Sent Events (SSE) in ESP-IDF

Postby MicroController » Tue Feb 06, 2024 12:27 pm

393877719 wrote:
Mon Feb 05, 2024 1:38 pm

Code: Select all

httpd_socket_send(mySocketHD, mySocketFD, sse_resp, sizeof(sse_resp), 0);
One last thing: sizeof(sse_resp) should be sizeof(sse_resp)-1 because sse_resp implicitly includes a "\0" terminator which you should not send.

SirrCharles
Posts: 3
Joined: Sun Jun 04, 2017 4:39 am

Re: Implementation of Server-Sent Events (SSE) in ESP-IDF

Postby SirrCharles » Sat Apr 13, 2024 8:50 pm

A client example of this would be fantastic!

Who is online

Users browsing this forum: Majestic-12 [Bot] and 56 guests