feat: 网络
This commit is contained in:
parent
f8b5f3a395
commit
1b0e5ec8ab
|
|
@ -30,17 +30,6 @@ class WebSocketManager(context: Context, scope: CoroutineScope) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
scope.launch {
|
|
||||||
while (true) {
|
|
||||||
delay(5.seconds.inWholeMilliseconds)
|
|
||||||
webSocketConnection.sendRequest(
|
|
||||||
WebSocketRequestMessage(
|
|
||||||
requestId = "测试数据 ${Date().time}"
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
fun connect() {
|
fun connect() {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue