# HOW to implement SSE in Node-Red?

**URL:** <https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377>\
**Category:** General\
**Tags:** function-node\
**Created:** [10 November 2022 07:02 UTC](https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377 "2022-11-10T07:02:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![donghyeon95](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/donghyeon95/32/69326_2.png) [@donghyeon95](https://discourse.nodered.org/u/donghyeon95)\
**Post date:** [10 November 2022 07:02 UTC](https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377/1 "2022-11-10T07:02:08Z")

</div>

Hi, node-red-ers  
Help!!  
I am using node-red as a web application server.  
I need to send a notification from the web server to the client through sse, how can I implement it in node-red?

When I check the http node, there is no write in msg.res,  
Also, it seems that you shouldn't even try to send it with send or json.  
Please help me

attached error massage below  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/9/793c3b3e3e15f711aa6271af98a656e79d940673.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [10 November 2022 07:17 UTC](https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377/2 "2022-11-10T07:17:06Z")

</div>

Have you tried the SSE nodes?

[https://flows.nodered.org/search?term=-sse&type=node&type=flow](https://flows.nodered.org/search?term=-sse&type=node&type=flow)

---

<div class="post-metadata">

**Author:** ![donghyeon95](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/donghyeon95/32/69326_2.png) [@donghyeon95](https://discourse.nodered.org/u/donghyeon95)\
**Post date:** [11 November 2022 02:41 UTC](https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377/3 "2022-11-11T02:41:03Z")

</div>

thank you steve.  
I use @ekaralis/node-red-contrib-sse-plus.  
Using it, an SSE connection became possible.

However, there was a phenomenon that only the connection was made and the data did not go.

When I opened the code and checked it, I found that if the room name contains '/', it doesn't work.

Fortunately, I was able to confirm it in Rooms by omitting the '/'. it runs fine now

thank you

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [11 November 2022 07:02 UTC](https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377/4 "2022-11-11T07:02:12Z")

</div>

Glad you are sorted.

> [@donghyeon95](#):
>
> When I opened the code and checked it, I found that if the room name contains '/', it doesn't work.
> 
> Fortunately, I was able to confirm it in Rooms by omitting the '/'. it runs fine now

Assuming that is a bug, you should raise an issue so the author can fix it

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 November 2022 07:02 UTC](https://discourse.nodered.org/t/how-to-implement-sse-in-node-red/70377/5 "2022-11-25T07:02:14Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
