Class: websocket<CT>
小于 1 分钟
Class: websocket<CT>
network.websocket
通用 websocket
Type parameters
Name | Type |
---|---|
CT | extends codec_base = codec_base |
Hierarchy
base
<CT
>↳
websocket
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new websocket<CT
>(config_?
)
Type parameters
Name | Type |
---|---|
CT | extends codec_base = codec_base |
Parameters
Name | Type |
---|---|
config_? | Partial <init_config <CT >> |
Overrides
Defined in
assets/@framework/network/websocket/mk_websocket.ts:9
Properties
config
• config: Readonly
<init_config
<CT
>>
配置信息
Overrides
Defined in
assets/@framework/network/websocket/mk_websocket.ts:15
_socket
• Protected
_socket: WebSocket
socket
Overrides
Defined in
assets/@framework/network/websocket/mk_websocket.ts:17
Methods
_reset_socket
▸ Protected
_reset_socket(): void
重置socket
Returns
void