https://github.com/marcomontalbano/poc-socket
Just one socket server used by many apps/games
https://github.com/marcomontalbano/poc-socket
jest socket web-sockets
Last synced: 10 months ago
JSON representation
Just one socket server used by many apps/games
- Host: GitHub
- URL: https://github.com/marcomontalbano/poc-socket
- Owner: marcomontalbano
- Created: 2021-01-20T22:35:59.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-10T09:02:34.000Z (about 4 years ago)
- Last Synced: 2025-02-02T02:26:57.672Z (11 months ago)
- Topics: jest, socket, web-sockets
- Language: TypeScript
- Homepage: https://www.marcomontalbano.com/poc-socket
- Size: 2.27 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# POC – Socket
## What
I started this project to understand more about Web Sockets ([socket.io](https://socket.io/)) and how to use them to build some multiplayer things.
The main goal was about having just one server used by many apps/games and I achieved this by using `rooms`. For each user that creates a new session, I create a new room with a unique `id` composed by a `name` and a `uuid`.
## Development
```sh
# start development server and demo
yarn dev
# build server and demo for production
yarn build
# run as production
yarn serve
```