Updated code
This commit is contained in:
31
test/test.ts
Normal file
31
test/test.ts
Normal file
@@ -0,0 +1,31 @@
|
||||
import { startClient } from '../src/api';
|
||||
|
||||
async function main() {
|
||||
const client = await startClient({
|
||||
port: 3000,
|
||||
options: {
|
||||
profile: 'mytest',
|
||||
},
|
||||
});
|
||||
|
||||
setTimeout(async () => {
|
||||
client?.stop();
|
||||
}, 5000);
|
||||
}
|
||||
|
||||
main().catch((err) => {
|
||||
console.error(err);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
// import { createProxyServer } from './proxy';
|
||||
// import { createProxyServer } from './proxy_tcp';
|
||||
|
||||
// const proxy = createProxyServer('https://git.cubetiqs.com', {
|
||||
// proxyPort: 3005,
|
||||
// basePath: '/',
|
||||
// });
|
||||
|
||||
// const proxy = createProxyServer('192.168.0.202', 8081, {
|
||||
// proxyPort: 3005,
|
||||
// });
|
||||
Reference in New Issue
Block a user