Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/zemkogabor/socket.io-service

Socket.io multiple node support and custom Express.js endpoints.
https://github.com/zemkogabor/socket.io-service

Last synced: about 7 hours ago
JSON representation

Socket.io multiple node support and custom Express.js endpoints.

Awesome Lists containing this project

README

        

# Socket.io - Realtime Service

- Socket.io as a service.
- Multiple node support.
- Custom Express.js endpoints.
- Include `/admin` namespace with room token auth. (Each user is placed in a room based on their token.)

## Endpoints

- `POST /emit` - Emit event on websocket
- `event`
- `namespace`
- `room`
- `data`
- `GET /healthcheck` - For healthcheck

## Install Dev

```shell
$ cp .env.example .env
```

```shell
$ docker-compose run --rm socket yarn install
```

```shell
$ docker-compose up -d
```