Skip to content

gmdworkspace/server-sent-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Server Sent Events Demo

Install dependencies

npm i

Start application

npm start

Test application

Open http://localhost:5005/index.html on your browser

Send a POST call http://localhost:5005/publish with body {"message": "Hello World!"} on Postman

You also can see the messages from server to client on the eventstream on network tab of chrome dev tools.