Skip to content

ishanjain1502/server-sent-events

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

server-sent-events

This Repository Consists of 2 tasks of which the first is just the server-side-events, while 2nd one is server-side-events server connected with a reactJS App

What is Server-Sent-Events ?

With server-sent events, it's possible for a server to send new data to a web page at any time, by pushing messages to the web page. This way you do not need to hit API again and again.
It helps in one way communication, and is also used for things like broadcasting live score and stuff like that.



What have you made ??

I have made a server where you can post your joke which with the help of directly gets stored into the array with the help of server sent event
Also the same thing will get updated on the front end too

How to use ?

  1. Clone the repository
  2. Run npm install (pre-requisite: nodeJS installed n your system)
  3. Now run the server from node using "node server.js""
  4. And the reactJS server by "npm start"

With this you are good to go 🌻

About

a web app on server-sent-events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published