edgetunnel/node-test.mjs
zizifn3 620c57e602 add node vless (#95)
add node vless
2023-01-19 23:50:16 +08:00

20 lines
367 B
JavaScript

import { connect, Socket } from 'node:net';
import { Duplex } from 'node:stream';
import { WritableStream } from 'node:stream/web';
try {
const socket = connect(
{
port: '443',
host: 'www.google.com',
},
() => {
console.log('connect ', socket.readyState);
}
);
} catch (err) {
console.log('----', err);
}
console.log('end');