add defaultSafelyExceptionHandler and SafelyExceptionHandler

This commit is contained in:
2020-12-22 15:16:06 +06:00
parent a15cbdfb1a
commit 069e51f2ff
3 changed files with 35 additions and 7 deletions

View File

@@ -25,7 +25,7 @@ inline fun <T> HttpClient.createStandardWebsocketFlow(
val producerScope = this@channelFlow
do {
val reconnect = try {
safely ({ throw it }) {
safely {
ws(correctedUrl) {
for (received in incoming) {
when (received) {