1.0.0 • Published 9 months ago
ws-adapter v1.0.0
Websocket Adapter
A simple adapter for HTTP <=> Websocket.
Build Setup
# install dependencies
$ npm install
# serve with hot reload at localhost:5001
$ npm run dev
# build for production and launch server
$ npm run build
$ npm run start
Configuration
Configure the service with .${APP_NAME}rc
file (default: .ws-adapterrc
). See src/@types/config.d.ts
to see all available configurations.
{
"APP_PORT": 5001,
"CLIENTS": [
{
"clientId": "client",
"clientSecret": "123",
"axiosConfig": {
"url": "https://yesno.wtf/api",
"method": "get"
}
},
{
"clientId": "broadcast",
"clientSecret": "123"
}
]
}
Security Vulnerabilities
If you discover a security vulnerability within Websocket Adapter, please send an e-mail to Gradiyanto Putera Husein at gradiph@gmail.com. All security vulnerabilities will be promptly addressed.
License
The Websocket Adapter is open-sourced software licensed under the MIT license.