【文件属性】:
文件名称:Interceptor:拦截传出的请求
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-18 17:32:02
websockets JavaScript
拦截器
拦截传出的请求。 (WebSocket和HTTP请求) NOTE: This plugin does not intercept the main Discord websocket on startup.
拦截WebSocket创建
const interceptor = this . manager . get ( 'Interceptor' ) ;
interceptor . on ( 'websocket-intercepted' , iee => {
if ( iee . ws . url . includes ( "dealer.spotify.com" ) ) this . spotifyWS = iee ;
iee . on ( 'data' , this . spotifyData ) ;
} ) ;
拦截HTTP请求
const intercepto
【文件预览】:
Interceptor-master
----README.md(906B)
----static()
--------interceptor.png(3KB)
----package.json(477B)
----index.js(3KB)
----LICENSE.md(1KB)