Skip to content

Home > @esengine/ecs-framework-monorepo > ITransport > broadcast

ITransport.broadcast() method

广播数据到所有客户端

Signature:

typescript
broadcast(data: ArrayBuffer | string, exclude?: string[]): void;

Parameters

Parameter

Type

Description

data

ArrayBuffer | string

数据

exclude

string[]

(Optional) 排除的客户端ID列表

Returns:

void

基于 MIT 许可证发布