wip: dual audio transmission server

This commit is contained in:
Kingtous committed 2023-02-07 16:20:36 +08:00
1 parent e0f73ccc28
commit 28ad271693
3 files changed
+80 -1

No files matched your search

+6
View File
@@ -108,6 +108,12 @@ pub struct Connection {
from_switch: bool,
}
impl ConnInner {
pub fn new(id: i32, tx: Option<Sender>, tx_video: Option<Sender>) -> Self {
Self { id, tx, tx_video }
}
}
impl Subscriber for ConnInner {
#[inline]
fn id(&self) -> i32 {