|
@@ -33,7 +33,7 @@ import com.drake.net.scope.DialogCoroutineScope
|
|
|
import com.drake.tooltip.toast
|
|
|
import com.yanzhenjie.kalle.Kalle
|
|
|
import com.yanzhenjie.kalle.KalleConfig
|
|
|
-import com.yanzhenjie.kalle.connect.BroadcastNetwork
|
|
|
+import com.yanzhenjie.kalle.connect.RealTimeNetwork
|
|
|
import com.yanzhenjie.kalle.connect.http.RedirectInterceptor
|
|
|
import com.yanzhenjie.kalle.exception.*
|
|
|
import com.yanzhenjie.kalle.simple.cache.DiskCacheStore
|
|
@@ -114,7 +114,7 @@ fun Application.initNet(host: String, config: KalleConfig.Builder.() -> Unit = {
|
|
|
app = this
|
|
|
val builder = KalleConfig.newBuilder()
|
|
|
builder.apply {
|
|
|
- network(BroadcastNetwork(this@initNet))
|
|
|
+ network(RealTimeNetwork(this@initNet))
|
|
|
addInterceptor(RedirectInterceptor())
|
|
|
config()
|
|
|
}
|