Skip to content

Home > @esengine/ecs-framework-monorepo > IClientTransport > onConnectionStateChange

IClientTransport.onConnectionStateChange() method

监听连接状态变化

Signature:

typescript
onConnectionStateChange(handler: (state: ConnectionState) => void): void;

Parameters

Parameter

Type

Description

handler

(state: ConnectionState) => void

处理函数

Returns:

void

基于 MIT 许可证发布