Comments (8)
目前只能看到请url和请求响应头;传输内容要等后续的插件,还在开发中,预计最快下个月可以发布
from whistle.
websocket 终于有盼头了...等了好久这个功能
from whistle.
@avwo 请问这个功能进度如何了?还有盼头吗?
from whistle.
本地已经拉了个分支在做这个事情,先用这个插件whistle.script撑段时间,v1.6.0
会直接在whistle上内置这个功能,可以支持抓包、拦截、修改、构造WebSocket请求
from whistle.
好的,多谢啦,已经用上了whistle.script插件了,不过指南关于websocket配置中有些错误
设置WebSocket请求的规则(需要开启HTTPs拦截):
exports.handleWebSocket = (ctx) => {
// ctx.fullUrl 可以获取请求url
// ctx.headers 可以获取请求头
// ctx.options 里面包含一些特殊的请求头字段,分别可以获取一些额外信息,如请求方法、设置的规则等
this.rules = '127.0.0.1 echo.websocket.org';
};
上述exports.handleWebSocket
应该是 exports.handleRequestRules
from whistle.
是我写错了,你直接提个pr把它改下,后续有问题也可以提pr
from whistle.
应该是 handleWebsocketRules
from whistle.
更新到最新版本即可:https://avwo.github.io/whistle/update.html
from whistle.
Related Issues (20)
- whistle设置了代理之后手机说无法连接到互联网 HOT 6
- 2.9.70 版本rule(规则)优先级发生变化,在之前版本配置的规则失效 HOT 3
- whistle抓不到支付宝小程序的包 HOT 1
- 使用代理大量请求时Chrome浏览器请求会报错:net::ERR_HTTP2_PROTOCOL_ERROR HOT 7
- No such file or directory HOT 1
- plugin 中如何 使用 values? HOT 3
- /cgi-bin/get-data 的 ids 参数元素过多,导致 URI 地址过长 414 状态码 HOT 5
- ios17.4代理不到8899,换个ios17.3.1就可以 HOT 1
- Error: socket connect timeout HOT 9
- 插件怎么起一个websocket呢,插件UI需要监听返回数据,有没有例子
- 【插件】插件推荐 whistle.devtool
- 请问 resReplace 的 Values中 如果想将”a: 1“ 替换成”a: 2“ 要如何处理 HOT 2
- whistle可以不设置代理,直接作为mock服务器使用吗 HOT 5
- 能否多台电脑的whistle使用同一个HTTPS证书? HOT 3
- whistle不设置代理,直接作为mock服务器调用,可以使用https吗 HOT 2
- log协议提供的界面ui样式不太直观,是否可以优化下样式,或者直接将log原样输出到控制台?
- Mac电脑开启梯子VPN后,代理不生效 HOT 2
- 想删除请求url的某个字段,规则怎么写? HOT 3
- host正则怎么不支持反向引用 HOT 4
- 关于 Weinre 的 `httpSocket._sendQueued is not a function` 报错 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whistle.