Added IceCandidate tranpsort type

This commit is contained in:
Nickiel12 2024-08-24 19:42:34 +00:00
parent 0765f70fa7
commit e8aa877f2a

View file

@ -15,13 +15,14 @@ use tokio_tungstenite::{connect_async, tungstenite::Message, MaybeTlsStream, Web
use tokio_tungstenite::tungstenite::error::Error as tungstenite_error;
use tracing::{error, info, debug, instrument};
use webrtc::peer_connection::sdp::session_description::RTCSessionDescription;
use webrtc::ice_transport::ice_candidate::RTCIceCandidate;
static MAX_MESSAGE: usize = 50;
#[derive(Serialize, Deserialize, Clone)]
pub enum ApplicationMessage {
WebRTCPacket(RTCSessionDescription),
WebRTCIceCandidate(RTCIceCandidate),
}
pub type AppSender = Sender<ApplicationMessage>;