mirror of
https://github.com/taixingyiji/openit.git
synced 2025-11-02 11:32:24 +00:00
Hello World
This commit is contained in:
14
utils/rm/node_modules/clash-proxy/example/index.js
generated
vendored
Normal file
14
utils/rm/node_modules/clash-proxy/example/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
const Clash = require('..');
|
||||
|
||||
const clash = Clash({
|
||||
secret: 'song940@163.com',
|
||||
api: 'http://lsong.me:9090'
|
||||
});
|
||||
|
||||
clash.traffic(({ up, down }) => {
|
||||
console.log('traffic: up: %i; down: %i', up, down);
|
||||
});
|
||||
|
||||
clash.logs('debug', ({ type, payload }) => {
|
||||
console.log('log', type, payload);
|
||||
});
|
||||
Reference in New Issue
Block a user