ws Binding
Bindingwsserverclient
ws Binding
Defines a binding with WebSockets protocol support, with server
or client
behavior.
server
The server
kind ws
binding converts inbound http
request-response streams into ws
full-duplex streams.
Conditional routes based on ws
scheme, authority, path or negotiated subprotocol are used to route these streams to an exit
binding.
ws_server:
type: ws
kind: server
exit: echo_server
routes:
- when:
- protocol: mqtt
exit: mqtt_server
client
The client
kind ws
binding converts inbound ws
full duplex streams into http
request-response streams.
Conditional routes based on ws
scheme, authority, path or negotiated subprotocol are used to route these streams to an exit
binding.
ws_client:
type: ws
kind: client