Coder Social home page Coder Social logo

Comments (8)

avwo avatar avwo commented on April 30, 2024 1

目前只能看到请url和请求响应头;传输内容要等后续的插件,还在开发中,预计最快下个月可以发布

from whistle.

zhouzhui avatar zhouzhui commented on April 30, 2024

websocket 终于有盼头了...等了好久这个功能

from whistle.

dong2590 avatar dong2590 commented on April 30, 2024

@avwo 请问这个功能进度如何了?还有盼头吗?

from whistle.

avwo avatar avwo commented on April 30, 2024

本地已经拉了个分支在做这个事情,先用这个插件whistle.script撑段时间,v1.6.0 会直接在whistle上内置这个功能,可以支持抓包、拦截、修改、构造WebSocket请求

from whistle.

dong2590 avatar dong2590 commented on April 30, 2024

好的,多谢啦,已经用上了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.

avwo avatar avwo commented on April 30, 2024

是我写错了,你直接提个pr把它改下,后续有问题也可以提pr

from whistle.

avwo avatar avwo commented on April 30, 2024

应该是 handleWebsocketRules

from whistle.

avwo avatar avwo commented on April 30, 2024

更新到最新版本即可:https://avwo.github.io/whistle/update.html

from whistle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.