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
/
setOnError
set
On
Error
abstract
fun
setOnError
(
onErrorListener
:
(
scope
:
CoroutineScope
,
e
:
Throwable
)
->
Job
)
设置一个当会话中发生错误时触发的回调。
Parameters
on
Error
Listener
一个监听器函数,接收
CoroutineScope
和导致错误的
Throwable
。