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
- Host: GitHub
- URL: https://github.com/pedr0rocha/nodejs-websocket
- Owner: Pedr0Rocha
- License: mit
- Created: 2021-10-27T10:08:23.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-28T03:11:25.000Z (over 4 years ago)
- Last Synced: 2025-09-09T21:13:21.540Z (10 months ago)
- Topics: mongodb, node, nodejs, websocket
- Language: JavaScript
- Homepage:
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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`