Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 387 Bytes

Readme.md

File metadata and controls

15 lines (9 loc) · 387 Bytes

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.