sdk
Toggle table of contents
androidJvm
Target filter
androidJvm
Switch theme
Search in API
Skip to content
sdk
sdk
/
com.m8test.script.core.api.http.common
/
WebSocketSession
/
setOnText
set
On
Text
abstract
fun
setOnText
(
onTextListener
:
(
scope
:
CoroutineScope
,
text
:
String
)
->
Job
)
设置一个当接收到文本消息时触发的回调。
Parameters
on
Text
Listener
一个监听器函数,接收
CoroutineScope
和文本消息字符串。