Home > @esengine/ecs-framework-monorepo > ITransport > send
ITransport.send() method
发送数据到指定客户端
Signature:
typescript
send(clientId: string, data: ArrayBuffer | string): void;
Parameters
Parameter | Type | Description |
---|---|---|
clientId | string | 客户端ID |
data | ArrayBuffer | string | 数据 |
Returns:
void