An open API service indexing awesome lists of open source software.

https://github.com/pedr0rocha/nodejs-websocket

A simple websocket server with a rest endpoint to get messages stored in mongodb
https://github.com/pedr0rocha/nodejs-websocket

mongodb node nodejs websocket

Last synced: about 2 months ago
JSON representation

A simple websocket server with a rest endpoint to get messages stored in mongodb

Awesome Lists containing this project

README

          

# Node Websocket

A simple websocket server with a rest endpoint to get previous sent data.

Also features a client that sends a message through the websocket, gets messages by keys and listens to broadcast events to know when a new message is saved to the database.

Websocket server saves all previous messages to a mongodb database.

## Install & Run

`npm install`

set your ENV variables according to .env.example file and run

`npm run start:dev`