forked from gammazero/nexus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
roles.go
44 lines (42 loc) · 1.24 KB
/
roles.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
package client
import "github.com/dtegapp/nexus/v3/wamp"
// Features supported by nexus client.
var clientRoles = wamp.Dict{
wamp.RolePublisher: wamp.Dict{
"features": wamp.Dict{
wamp.FeatureSubBlackWhiteListing: true,
wamp.FeaturePubExclusion: true,
wamp.FeaturePubIdent: true,
wamp.FeaturePayloadPassthruMode: true,
},
},
wamp.RoleSubscriber: wamp.Dict{
"features": wamp.Dict{
wamp.FeaturePatternSub: true,
wamp.FeaturePubIdent: true,
wamp.FeaturePayloadPassthruMode: true,
},
},
wamp.RoleCallee: wamp.Dict{
"features": wamp.Dict{
wamp.FeaturePatternBasedReg: true,
wamp.FeatureSharedReg: true,
wamp.FeatureCallCanceling: true,
wamp.FeatureCallTimeout: true,
wamp.FeatureCallerIdent: true,
wamp.FeatureProgCallInvocations: true,
wamp.FeatureProgCallResults: true,
wamp.FeaturePayloadPassthruMode: true,
},
},
wamp.RoleCaller: wamp.Dict{
"features": wamp.Dict{
wamp.FeatureCallCanceling: true,
wamp.FeatureCallTimeout: true,
wamp.FeatureCallerIdent: true,
wamp.FeatureProgCallInvocations: true,
wamp.FeatureProgCallResults: true,
wamp.FeaturePayloadPassthruMode: true,
},
},
}