https://github.com/somnath-chattaraj/pubsub_and_singlenton
https://github.com/somnath-chattaraj/pubsub_and_singlenton
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/somnath-chattaraj/pubsub_and_singlenton
- Owner: Somnath-Chattaraj
- Created: 2024-05-02T13:36:36.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-03T15:29:20.000Z (about 1 year ago)
- Last Synced: 2025-02-01T13:44:46.721Z (4 months ago)
- Language: TypeScript
- Size: 280 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# To start follow the guidelines
```
npm i
tsc -b
node dist/index.js```
# DescriptionThis is basically a stateful backend server. It create a `in memory cached` and can also be use to store the `state` of the game in a real-time game. It also apply `stickness` i.e.
make sure the user who is interested in a specific room get connect to a specific server. Here it is basically a system where the user can subscribe to the information they want. `For example: feed of the stock (prices)`
In this the `PubSubManager.ts` file create a manager that look upon the user interest where `index.ts` file stimulates as users.