Search
Preparing search index...
The search index is not available
webrtc-guest-sdk - v2.7.1-4
Options
All
Public
Public/Protected
All
Inherited
Externals
Menu
webrtc-guest-sdk - v2.7.1-4
ISocket
Interface ISocket
Hierarchy
ISocket
IStompSocket
Index
Properties
state
Methods
close
send
Properties
state
state
:
SocketState
实例的连接状态
Methods
close
close
(
code
:
number
, reason
?:
string
)
:
Promise
<
void
>
关闭连接
Parameters
code:
number
Optional
reason:
string
Returns
Promise
<
void
>
send
send
(
data
:
SocketSendDataType
)
:
Promise
<
void
>
发送消息, 传入的非字符串类型将会通过{@link JSON.stringify}转化为JSON字符串.
Parameters
data:
SocketSendDataType
要发送的数据
Returns
Promise
<
void
>
Exports
ISocket
state
close
send
实例的连接状态