ws client
ws client
The ws client binding converts inbound ws full duplex streams into http request-response streams.
ws_client:
type: ws
kind: clientConfiguration (* required)
options
object
The ws specific options.
options.defaults
object
Defaults.
defaults.protocol
string
Subprotocol.
defaults.scheme
string
Scheme.
defaults.authority
string
Authority.
defaults.path
string
Path.
routes*
arrayofobject
Conditional ws specific routes.
routes:
- when:
- protocol: echo
exit: echo_serverroutes[].guarded
objectas map of namedarrayofstring
List of roles required by each named guard to authorize this route.
routes:
- guarded:
my_guard:
- read:itemsroutes[].when
arrayofobject
List of conditions (any match) to match this route. Read more: When a route matches
routes:
- when:
- protocol: echowhen[].protocol
string
Subprotocol pattern.
when[].scheme
string
Scheme pattern.
when[].authority
string
Authority pattern.
when[].path
string
Path pattern.
routes[].exit
string
Next binding when following this route.
routes:
- when:
...
exit: echo_serverexit
string
Default exit binding when no conditional routes are viable.
exit: echo_servertelemetry
object
Defines the desired telemetry for the binding.
telemetry.metrics
array
Telemetry metrics to track
telemetry:
metrics:
- stream.*
