This is a small backend service for serving a simple chat application using Server-Sent events.
$ npm install
$ npm startYou can test the application by running it locally:
$ npm install
$ npm run devSubscribe to the chat messages in one window:
$ curl localhost:3000/subscribeThen use a different window to send chat messages:
$ curl -H 'Content-Type:application/json' -X POST -d '{"nick":"yourCoolNickname","message":"Test!"}' localhost:3000/sendMessage