Skip to content

Commit 605cccd

Browse files
CrossBar Ping Interval/Timeout
1 parent fa55380 commit 605cccd

4 files changed

Lines changed: 150 additions & 0 deletions

File tree

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/crossbario/crossbar/master/crossbar.json",
3+
"version": 2,
4+
"controller": {
5+
},
6+
"workers": [
7+
{
8+
"type": "router",
9+
"realms": [
10+
{
11+
"name": "realm1",
12+
"roles": [
13+
{
14+
"name": "anonymous",
15+
"permissions": [
16+
{
17+
"uri": "",
18+
"match": "prefix",
19+
"allow": {
20+
"call": true,
21+
"register": true,
22+
"publish": true,
23+
"subscribe": true
24+
},
25+
"disclose": {
26+
"caller": false,
27+
"publisher": false
28+
},
29+
"cache": true
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"transports": [
37+
{
38+
"type": "universal",
39+
"endpoint": {
40+
"type": "tcp",
41+
"port": 8080
42+
},
43+
"rawsocket": {
44+
},
45+
"websocket": {
46+
"ws": {
47+
"type": "websocket",
48+
"options": {
49+
"auto_ping_interval": 60000,
50+
"auto_ping_timeout": 80000
51+
}
52+
}
53+
54+
},
55+
"web": {
56+
"paths": {
57+
"/": {
58+
"type": "static",
59+
"directory": "../web",
60+
"options": {
61+
"enable_directory_listing": true
62+
}
63+
},
64+
"info": {
65+
"type": "nodeinfo"
66+
}
67+
}
68+
}
69+
}
70+
]
71+
}
72+
]
73+
}
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/crossbario/crossbar/master/crossbar.json",
3+
"version": 2,
4+
"controller": {
5+
},
6+
"workers": [
7+
{
8+
"type": "router",
9+
"realms": [
10+
{
11+
"name": "realm1",
12+
"roles": [
13+
{
14+
"name": "anonymous",
15+
"permissions": [
16+
{
17+
"uri": "",
18+
"match": "prefix",
19+
"allow": {
20+
"call": true,
21+
"register": true,
22+
"publish": true,
23+
"subscribe": true
24+
},
25+
"disclose": {
26+
"caller": false,
27+
"publisher": false
28+
},
29+
"cache": true
30+
}
31+
]
32+
}
33+
]
34+
}
35+
],
36+
"transports": [
37+
{
38+
"type": "universal",
39+
"endpoint": {
40+
"type": "tcp",
41+
"port": 8080
42+
},
43+
"rawsocket": {
44+
},
45+
"websocket": {
46+
"ws": {
47+
"type": "websocket",
48+
"options": {
49+
"auto_ping_interval": 60000,
50+
"auto_ping_timeout": 80000
51+
}
52+
}
53+
54+
},
55+
"web": {
56+
"paths": {
57+
"/": {
58+
"type": "static",
59+
"directory": "../web",
60+
"options": {
61+
"enable_directory_listing": true
62+
}
63+
},
64+
"info": {
65+
"type": "nodeinfo"
66+
}
67+
}
68+
}
69+
}
70+
]
71+
}
72+
]
73+
}

docker-compose/docker-compose.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ services:
3030
container_name: crossbar
3131
hostname: crossbar
3232
network_mode: host
33+
volumes:
34+
- ./crossbar/dev/config.json:/node/.crossbar/config.json
3335
logging:
3436
driver: journald
3537
options:

docker-compose/generate-config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
container_name: crossbar
5757
hostname: crossbar
5858
network_mode: host
59+
volumes:
60+
- ./crossbar/{config_path}/config.json:/node/.crossbar/config.json
5961
logging:
6062
driver: journald
6163
options:

0 commit comments

Comments
 (0)