23 lines
759 B
Markdown
23 lines
759 B
Markdown
# 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)
|
|
```
|