triblondon / node-sse-pubsub

Server sent events for NodeJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error while running

GHNewbiee opened this issue · comments

commented

Hi, I have followed the basic example in the doc.

Unfortunately, I get an Internal Server Error with "message":"c.res.writeHead is not a function".

Any idea/suggestion? Tia

PS: I use fastify; hence,

fasify.get('/stream', (req, res) => channel.subscribe(req, res));