https://github.com/meething/ws-multisocket
WS/S Multisocket with mesh partitioning over single HTTP/S server
https://github.com/meething/ws-multisocket
meething mesh websocket wss
Last synced: 2 months ago
JSON representation
WS/S Multisocket with mesh partitioning over single HTTP/S server
- Host: GitHub
- URL: https://github.com/meething/ws-multisocket
- Owner: meething
- Created: 2020-11-09T21:27:56.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2020-11-16T09:07:57.000Z (about 5 years ago)
- Last Synced: 2024-12-26T11:14:16.726Z (about 1 year ago)
- Topics: meething, mesh, websocket, wss
- Language: JavaScript
- Homepage:
- Size: 25.4 KB
- Stars: 4
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

#### WSS MultiSocket
Single `HTTP/S` server providing multiple ephemeral `WebSocket` instances with path based routing and mesh isolation.
### Configuration
* requires a valid set of SSL/TLS certificates _(letsencrypt)_
### Installation
```
npm install
```
### Usage
#### npm
Explode your ENV variables manually and launch using npm:
```
PORT=443 SSLKEY=/path/to/privkey.pem SSLCERT=/path/to/fullchain.pem npm start
```
#### pm2
Configure the options in `multisocket.config.js` and launch using pm2:
```
pm2 start multisocket.config.js
```
###### Credits
This project is a component of [Gun Meething](https://github.com/meething/webrtc-gun) powered by [GunDB](https://gun.eco)