Skip to content

guilhermeavanci/sse-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SERVER SENT EVENTS (SSE) EXAMPLE

Using node and express.

Install dependencies

npm i

Run

node server.js

The server must be running on port 3000.

Testing

Browser

You can see it working on the browser accessing http://localhost:3000/.

CLI

You can also check the events on your terminal running:

curl localhost:3000/stream

Source

Based on Josh's and Ggorlen's answers to this Stackoverflow question.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published