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

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

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
```