No-match and upstream
When a client message **does not match**, or when Mock cuts upstream, behavior comes from `# on-unmatch`, `# upstream`, `# ping auto`, etc. These switches prevent dropped connections or missing forwards.
on-unmatch silent / root / passthrough(仅针对 client 消息条件未命中)
- 根级
--*兜底(可选):任意 client 消息帧 - 同一连接绑定一条 Flow
- v1 处理 text 帧;binary 忽略或 passthrough
- 协议 ping:# ping auto 或 --@ping
- --@loop 须在连接关闭时清理 timer
Mock 模式与 upstream 行为
由 # upstream 控制(默认 off):
| 模式 | client 帧未命中 Flow | client 帧命中 Flow |
|---|---|---|
| off | 不转发(mock 接管) | 不转发;执行 Flow |
| passthrough | 转发 | 转发;仍执行 mock 返回 |
| matched-off | 转发 | 不转发;执行 Flow |
# on-unmatch silent 仅影响 是否发送 mock 默认响应;与 upstream 正交。
协议 @ping 始终由 mock 处理(ping auto 或 --@ping)。