Skip to content

Commit

Permalink
Fix 'getting-started' example sending a 'push' event instead of a 'pi…
Browse files Browse the repository at this point in the history
…ng' event.
  • Loading branch information
MatthewWid committed Jan 15, 2022
1 parent 16ca606 commit 78e699e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/getting-started/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ app.get(
next();
},
/**
* Push a message with the event name "push".
* Push a message with the event name "ping".
*/
(_, res) => {
res.sse.push("Hello world!", "push");
res.sse.push("Hello world!", "ping");
}
);

Expand Down

0 comments on commit 78e699e

Please sign in to comment.