first commit

This commit is contained in:
rus07tam 2026-01-07 14:47:29 +00:00
commit 8eb4fcf055
100 changed files with 28695 additions and 0 deletions

16
src/index.ts Normal file
View file

@ -0,0 +1,16 @@
import { createChannel, Channel, ChannelOptions } from 'nice-grpc';
import { HandlerService } from './services';
export class XrayClient {
public readonly channel: Channel;
public readonly handler: HandlerService;
constructor(ip: string, port: string, options?: ChannelOptions) {
this.channel = createChannel(`${ip}:${port}`, undefined, {
...options,
});
this.handler = new HandlerService(this.channel);
return this;
}
}