Gateway: Allow connection info to be retrieved (#49)
This is a simple addition to allow current connection state to be retrieved *after* establishment, even when using the voice driver. This has been tested using `cargo make ready`, as it is fairly simple functionality.
This commit is contained in:
@@ -16,6 +16,14 @@ impl ConnectionProgress {
|
||||
})
|
||||
}
|
||||
|
||||
pub(crate) fn get_connection_info(&self) -> Option<&ConnectionInfo> {
|
||||
use ConnectionProgress::*;
|
||||
match self {
|
||||
Complete(c) => Some(&c),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub(crate) fn apply_state_update(&mut self, session_id: String) -> bool {
|
||||
use ConnectionProgress::*;
|
||||
match self {
|
||||
|
||||
Reference in New Issue
Block a user