fix(chat): DM SSE read timeout을 제거한다
This commit is contained in:
@@ -8,6 +8,7 @@ import okhttp3.OkHttpClient
|
||||
import okhttp3.Request
|
||||
import okhttp3.Response
|
||||
import java.io.IOException
|
||||
import java.util.concurrent.TimeUnit
|
||||
|
||||
class DmChatEventParser(private val gson: Gson) {
|
||||
sealed class Event {
|
||||
@@ -60,7 +61,7 @@ interface DmChatRealtimeClient {
|
||||
}
|
||||
|
||||
class DmChatEventClient(
|
||||
private val okHttpClient: OkHttpClient,
|
||||
okHttpClient: OkHttpClient,
|
||||
gson: Gson,
|
||||
private val baseUrl: String
|
||||
) : DmChatRealtimeClient {
|
||||
@@ -70,6 +71,9 @@ class DmChatEventClient(
|
||||
fun onFailure(throwable: Throwable)
|
||||
}
|
||||
|
||||
private val okHttpClient = okHttpClient.newBuilder()
|
||||
.readTimeout(0, TimeUnit.MILLISECONDS)
|
||||
.build()
|
||||
private val parser = DmChatEventParser(gson)
|
||||
private var call: Call? = null
|
||||
|
||||
|
||||
Reference in New Issue
Block a user