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)
- MAC 重启后,whistle 连不上了,重新装 whistle 启动也不生效. HOT 4
- whistle代理页面资源时,会遇到502 HOT 1
- mock无法保存value值 HOT 1
- Whistle 无法在 Node.js v21.6.2 上启动 HOT 2
- network的某个请求中,mock修改响应数据,默认选择存储在系统文件中,生成的temp文件夹在哪里呢? HOT 1
- connect协议的http请求无法解析 HOT 6
- 底部的日志过滤文本框能支持正则表达式过滤不,没有正则过滤日志太麻烦了 HOT 4
- 是否可以让whistle通过系统代理或指定代理访问网络? HOT 1
- 如何将代理匹配到的 rule 信息返回给请求方 HOT 5
- ubuntu 下安装证书后依旧无法截取 https 请求 HOT 1
- websocket下如何自动解压数据流?websocket框架存在未知的bug? HOT 9
- 增加更多命令行CLI接口调用 HOT 1
- DNS Lookup Failed HOT 2
- 公网ip+端口 报错 socket connect timeout HOT 5
- 【需求】缺少绑定到每个请求上的console.log HOT 1
- 【需求】对请求设置命中次数,重新打开规则时刷新次数。 HOT 3
- 被测网站证书更新了,工具报错,该如何处理? HOT 3
- 有考虑支持 SSE 协议的请求吗? HOT 1
- HEXtext显示错误 HOT 2
- 怎么 mock 一个 sse 请求呢?🤔 HOT 1
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.