Skip to content
This repository has been archived by the owner on Jul 25, 2018. It is now read-only.

Latest commit

 

History

History
53 lines (31 loc) · 1.82 KB

README.md

File metadata and controls

53 lines (31 loc) · 1.82 KB

pooo

碧蓝幻想 抓包分析器 基于anyproxy,在electron的render进程中使用ws连接anyproxy提供的ws server,获取到所有经过anyproxy的数据包

本身只进行抓包,而不进行任何的数据修改和代替客户端发包

Build Setup

如果你想自己手动构建,请先安装nodejs

# 安装依赖
npm ci

# serve with hot reload at localhost:9080
npm run dev

# build electron application for production
npm run build

# lint all JS/Vue component files in `src/`
npm run lint

使用

在浏览器插件中代理以下两个域名

*.granbluefantasy.jp
203.104.248.5

进入战斗后,浏览器会与此ip地址进行socket.io的通信,不加入代理无法根据血量提醒特动.

贡献

使用standardjs进行lint

boss的数据在src/lib/bossAction/boss中,以start.json中的boss.param[0].name.en来命名.

EventEmitter:

render进程中的ipcRenderer,main进程中的ipcMain,用于main进程与render进程的通信,目前只用于保存config和启动启动代理服务器.

render进程中的src/renderer/renderBus.js,目前有两个事件:boss-updatestart-wsc.boss-update用于在boss状态更新时进行广播,start-wsc用于在代理服务器成功启动之后通知websocket客户端连接到anyproxy提供的控制面板.

main进程中的src/main/bus.js,目前只负责在代理src/main/proxy/rule.jssrc/main/index.js中进行通信.bus只绑定了一个事件http,在rule.js中进行广播,main.js中进行接收,然后通过mainWindow.webContents广播到前端.

关于 vue组件: 不要在methods中给data中的对象绑定新的key,如果需要新的key请在component.data中预先注明并添加默认值.