跳至主要內容

Class: send_tide<CT>

muzzik小于 1 分钟

index / network / base_ / send_tide

Class: send_tide<CT>

network.base_.send_tide

发送潮

Type parameters

NameType
CTextends codec_base = codec_base

Table of contents

Constructors

Methods

Constructors

constructor

new send_tide<CT>(network_, interval_ms_n_)

Type parameters

NameType
CTextends codec_base = codec_base

Parameters

NameTypeDescription
network_base<codec_base>网络实例
interval_ms_n_number发送间隔 - -1:手动触发 - 0-n:自动发送间隔毫秒

Defined in

assets/@framework/network/mk_network_base.ts:711open in new window

Methods

send

send(data_): void

发送

Parameters

NameType
data_Parameters<CT["encode"]>[0]

Returns

void

Defined in

assets/@framework/network/mk_network_base.ts:733open in new window


trigger

trigger(): void

触发发送

Returns

void

Defined in

assets/@framework/network/mk_network_base.ts:755open in new window

📣 觉得很赞?分享给你的朋友吧!