Add realtime gateway and simulator bridge
This commit is contained in:
15
realtime-gateway/config/consumer-gps-heart.example.json
Normal file
15
realtime-gateway/config/consumer-gps-heart.example.json
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
"url": "ws://127.0.0.1:18080/ws",
|
||||
"token": "replace-with-dev-consumer-token",
|
||||
"snapshot": true,
|
||||
"subscriptions": [
|
||||
{
|
||||
"deviceId": "child-001",
|
||||
"topic": "telemetry.location"
|
||||
},
|
||||
{
|
||||
"deviceId": "child-001",
|
||||
"topic": "telemetry.heart_rate"
|
||||
}
|
||||
]
|
||||
}
|
||||
10
realtime-gateway/config/consumer-tunnel.example.json
Normal file
10
realtime-gateway/config/consumer-tunnel.example.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"url": "wss://your-tunnel-host.example.com/ws",
|
||||
"token": "replace-with-dev-consumer-token",
|
||||
"topics": [
|
||||
"telemetry.location",
|
||||
"telemetry.heart_rate"
|
||||
],
|
||||
"deviceId": "child-001",
|
||||
"snapshot": true
|
||||
}
|
||||
28
realtime-gateway/config/dev.json
Normal file
28
realtime-gateway/config/dev.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"server": {
|
||||
"httpListen": ":8080",
|
||||
"readTimeoutSeconds": 15,
|
||||
"writeTimeoutSeconds": 15,
|
||||
"idleTimeoutSeconds": 60,
|
||||
"shutdownTimeoutSeconds": 10
|
||||
},
|
||||
"gateway": {
|
||||
"maxPayloadBytes": 65536,
|
||||
"writeWaitSeconds": 10,
|
||||
"pongWaitSeconds": 60,
|
||||
"pingIntervalSeconds": 25,
|
||||
"maxLatestStateEntries": 10000
|
||||
},
|
||||
"auth": {
|
||||
"producerTokens": [
|
||||
"dev-producer-token"
|
||||
],
|
||||
"consumerTokens": [
|
||||
"dev-consumer-token"
|
||||
],
|
||||
"controllerTokens": [
|
||||
"dev-controller-token"
|
||||
],
|
||||
"allowAnonymousConsumers": true
|
||||
}
|
||||
}
|
||||
28
realtime-gateway/config/tunnel-dev.json
Normal file
28
realtime-gateway/config/tunnel-dev.json
Normal file
@@ -0,0 +1,28 @@
|
||||
{
|
||||
"server": {
|
||||
"httpListen": ":18080",
|
||||
"readTimeoutSeconds": 15,
|
||||
"writeTimeoutSeconds": 15,
|
||||
"idleTimeoutSeconds": 60,
|
||||
"shutdownTimeoutSeconds": 10
|
||||
},
|
||||
"gateway": {
|
||||
"maxPayloadBytes": 65536,
|
||||
"writeWaitSeconds": 10,
|
||||
"pongWaitSeconds": 60,
|
||||
"pingIntervalSeconds": 25,
|
||||
"maxLatestStateEntries": 10000
|
||||
},
|
||||
"auth": {
|
||||
"producerTokens": [
|
||||
"replace-with-dev-producer-token"
|
||||
],
|
||||
"consumerTokens": [
|
||||
"replace-with-dev-consumer-token"
|
||||
],
|
||||
"controllerTokens": [
|
||||
"replace-with-dev-controller-token"
|
||||
],
|
||||
"allowAnonymousConsumers": false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user