Skip to content

Commit e550526

Browse files
Remove the network state
1 parent 5a0b34e commit e550526

File tree

2 files changed

+0
-11
lines changed

2 files changed

+0
-11
lines changed

stream-android-core/src/main/java/io/getstream/android/core/api/socket/listeners/StreamClientListener.kt

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,4 @@ public interface StreamClientListener {
4848
* @param err The error that occurred.
4949
*/
5050
public fun onError(err: Throwable) {}
51-
52-
/**
53-
* Called when the network connection changes.
54-
*
55-
* @param state The new network state.
56-
*/
57-
public fun onNetworkState(state: StreamNetworkState) {}
5851
}

stream-android-core/src/test/java/io/getstream/android/core/api/socket/listeners/StreamListenersDefaultImplsTest.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,6 @@ internal class StreamListenersDefaultImplsTest {
6767
override fun onError(err: Throwable) {
6868
errorChannel.trySend(err)
6969
}
70-
71-
override fun onNetworkState(state: StreamNetworkState) {
72-
networkChannel.trySend(state)
73-
}
7470
}
7571

7672
val state = StreamConnectionState.Connecting.Opening("user")

0 commit comments

Comments
 (0)