Skip to content

Commit

Permalink
Adding expiry field to VoiceClient/Transport
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-daily committed Aug 21, 2024
1 parent 855e3d2 commit 9100b7c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,13 @@ open class VoiceClient(
val isCamEnabled
get() = transport.isCamEnabled()

/**
* The expiry time for the transport session, if applicable. Measured in seconds
* since the UNIX epoch (UTC).
*/
val expiry
get() = transport.expiry()

/**
* Returns a list of participant media tracks.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,12 @@ abstract class Transport {
abstract fun isCamEnabled(): Boolean
abstract fun isMicEnabled(): Boolean

/**
* The expiry time for the transport session, if applicable. Measured in seconds
* since the UNIX epoch (UTC).
*/
abstract fun expiry(): Long?

abstract fun sendMessage(message: MsgClientToServer): Future<Unit, VoiceError>

abstract fun state(): TransportState
Expand Down

0 comments on commit 9100b7c

Please sign in to comment.