diff --git a/docs-src/cn/SUMMARY.md b/docs-src/cn/SUMMARY.md index 437904f..5fd38f8 100644 --- a/docs-src/cn/SUMMARY.md +++ b/docs-src/cn/SUMMARY.md @@ -8,6 +8,7 @@ * [其他命令](README.md#其他命令) * [作为npm模块启动](README.md#作为npm模块使用) * [代理HTTPS](README.md#代理https) +* [代理WebSocket](README.md#代理websocket) * [rule模块](README.md#rule模块) * [开发示例](README.md#开发示例) * [处理流程](README.md#处理流程) diff --git a/docs-src/cn/src_doc.md b/docs-src/cn/src_doc.md index 3fe9af4..aebcb15 100644 --- a/docs-src/cn/src_doc.md +++ b/docs-src/cn/src_doc.md @@ -200,6 +200,14 @@ anyproxy --intercept #启动AnyProxy,并解析所有https请求 * [附录:如何信任CA证书](#证书配置) +# 代理WebSocket + +```bash +anyproxy --ws-intercept +``` + +> 当启用`HTTPS`代理时,`wss`也会被代理,但是不会被AnyProxy记录。需要开启`--ws-intercept`后才会从界面上看到相应内容。 + # rule模块 AnyProxy提供了二次开发的能力,你可以用js编写自己的规则模块(rule),来自定义网络请求的处理逻辑。 diff --git a/docs-src/en/SUMMARY.md b/docs-src/en/SUMMARY.md index 5f2c9f2..bf5728f 100644 --- a/docs-src/en/SUMMARY.md +++ b/docs-src/en/SUMMARY.md @@ -7,6 +7,7 @@ * [Options](README.md#options) * [As Node Module](README.md#use-anyproxy-as-an-npm-module) * [Proxy HTTPS](README.md#proxy-https) +* [Proxy WebSocket](README.md#proxy-websocket) * [Rule Introduction](README.md#rule-introduction) * [Sample](README.md#sample) * [How Does It Work](README.md#how-does-it-work) diff --git a/docs-src/en/src_doc.md b/docs-src/en/src_doc.md index 01757d7..79c9b9e 100644 --- a/docs-src/en/src_doc.md +++ b/docs-src/en/src_doc.md @@ -200,6 +200,13 @@ anyproxy --intercept #launch anyproxy and intercept all https traffic * [Appendix:how to trust CA](#config-certification) +# Proxy WebSocket + +```bash +anyproxy --ws-intercept +``` +> The `wss` requests will be handled automatically when the `HTTPS` intercept is turned on, but AnyProxy will not record the data by default. You need to specify the `--ws-intercept` to tell AnyProxy to record it. + # Rule Introduction AnyProxy provides the ability to load your own rules written in javascript. With rule module, you could customize the logic to handle requests.