Skip to content

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simple-chat-api

This is a small backend service for serving a simple chat application using Server-Sent events.

Running

$ npm install
$ npm start

Testing locally

You can test the application by running it locally:

$ npm install
$ npm run dev

Subscribe to the chat messages in one window:

$ curl localhost:3000/subscribe

Then use a different window to send chat messages:

$ curl -H 'Content-Type:application/json' -X POST -d '{"nick":"yourCoolNickname","message":"Test!"}' localhost:3000/sendMessage

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages