feat: add websocket upstream adapter
This commit is contained in:
@@ -430,6 +430,20 @@
|
||||
|
||||
- `kind`
|
||||
- `wsdl_ref`
|
||||
|
||||
## 5. `ProtocolOptions`
|
||||
|
||||
`ProtocolOptions` хранит protocol-specific runtime tuning, который не должен смешиваться с общей `ExecutionConfig`.
|
||||
|
||||
### 5.1. `GrpcProtocolOptions`
|
||||
|
||||
- `use_tls`
|
||||
|
||||
### 5.2. `WebsocketProtocolOptions`
|
||||
|
||||
- `heartbeat_interval_ms`
|
||||
- `reconnect_max_attempts`
|
||||
- `reconnect_backoff_ms`
|
||||
- `service_name`
|
||||
- `port_name`
|
||||
- `operation_name`
|
||||
|
||||
@@ -79,8 +79,6 @@ WebSocket operation должна включать:
|
||||
- `url`
|
||||
- `headers`
|
||||
- `subprotocols`
|
||||
- `connect_timeout_ms`
|
||||
- `heartbeat_interval_ms`
|
||||
- `subscribe_message_template`
|
||||
- `unsubscribe_message_template`
|
||||
- `input_mapping`
|
||||
@@ -88,6 +86,12 @@ WebSocket operation должна включать:
|
||||
- `execution_config`
|
||||
- `tool_description`
|
||||
|
||||
Protocol-specific runtime tuning хранится отдельно в `ProtocolOptions.websocket`:
|
||||
|
||||
- `heartbeat_interval_ms`
|
||||
- `reconnect_max_attempts`
|
||||
- `reconnect_backoff_ms`
|
||||
|
||||
## 7. Как оператор настраивает WebSocket operation
|
||||
|
||||
1. Указывает URL WebSocket upstream.
|
||||
|
||||
Reference in New Issue
Block a user