first commit
This commit is contained in:
commit
8eb4fcf055
100 changed files with 28695 additions and 0 deletions
23
README.md
Normal file
23
README.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
# XTLS SDK
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
A TypeScript SDK for interacting with [Xray Core](https://github.com/XTLS/Xray-core) via gRPC API.
|
||||
|
||||
Example:
|
||||
|
||||
```ts
|
||||
import { XrayClient } from '@ruject/xray-core';
|
||||
|
||||
const client = new XrayClient('127.0.0.1', '10000');
|
||||
const req = await client.handler.addVmessUser({
|
||||
email: 'test@example.com',
|
||||
level: 0,
|
||||
tag: 'vmess-in'
|
||||
});
|
||||
console.log(req.isOk)
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue