Skip to content

Commit

Permalink
fix: missing closing bracket in readme (#50)
Browse files Browse the repository at this point in the history
Added missing closing bracket

Added the closing ) bracket in Sending individual events
  • Loading branch information
Binamra7 authored Nov 2, 2022
1 parent 6b50435 commit b3496f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ server.get("/", async function (req, res) {
fastify.get('/listenForChanges', {}, (request, reply) => {
const listenStream = fastify.db.watch('doc-uuid')
.on('data', (data)=>reply.sse({ data: JSON.stringify(data) }))
.on('delete', () => reply.sse({ event: 'close' })
.on('delete', () => reply.sse({ event: 'close' }))
request.socket.on('close', ()=>listenStream.end())
})
```
Expand Down

0 comments on commit b3496f2

Please sign in to comment.