Skip to content

Commit 0fb6327

Browse files
committed
fix ICE events error
1 parent bc614e6 commit 0fb6327

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

library/src/main/java/io/callstats/event/ice/IceDisruptEndEvent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ class IceDisruptEndEvent(
2020
val currIceConnectionState: String,
2121
val delay: Long) : IceEvent()
2222
{
23+
val eventType = "iceDisruptionEnd"
2324
val prevIceConnectionState = "disconnected"
2425
}

library/src/main/java/io/callstats/event/ice/IceEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ import io.callstats.event.SessionEvent
66
* Base type for ICE events
77
*/
88
abstract class IceEvent : SessionEvent() {
9-
override fun path() = "event/ice/status"
9+
override fun path() = "events/ice/status"
1010
}

library/src/main/java/io/callstats/event/ice/IceTerminatedEvent.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ class IceTerminatedEvent(
1616
val prevIceCandidatePair: IceCandidatePair,
1717
val prevIceConnectionState: String) : IceEvent()
1818
{
19-
val eventType = "iceDisruptionStart"
19+
val eventType = "iceTerminated"
2020
val currIceConnectionState = "closed"
2121
}

0 commit comments

Comments
 (0)