api-websocket-bridge
Version:
API WebSocket Bridge is a Node.js application that provides a WebSocket server for real-time communication. It allows clients to connect and exchange data using the WebSocket protocol
31 lines (29 loc) • 790 B
JSON
{
"certPath": "/app/cert/fullchain.pem",
"keyPath": "/app/cert/privkey.pem",
"port": 8080,
"updateInterval": 5000,
"apiUrl": "https://www.saltybet.com/state.json",
"events": {
"teamNamesChange": {
"emitEvent": "teamNamesChange",
"params": ["p1name", "p2name"]
},
"betAmountChange": {
"emitEvent": "betAmountChange",
"params": ["p1total", "p2total"]
},
"statusChange": {
"emitEvent": "statusChange",
"params": ["status"]
},
"alertChange": {
"emitEvent": "alertChange",
"params": ["alert"]
},
"remainingChange": {
"emitEvent": "remainingChange",
"params": ["remaining"]
}
}
}