You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok so it was going to go in #283 but I'm just going to drop the code here so I can re-add it back later.
implWebRtcChannel{/// Returns whether this channel is closedpubfnis_closed(&self) -> bool{self.tx.is_closed()}}impl<C:ChannelPlurality>WebRtcSocket<C>{/// Returns whether this socket is closed; this is considered closed as soon as any channel (not/// taken) is closed.pubfnis_closed(&self) -> bool{self.channels.iter().filter_map(Option::as_ref).any(|c| c.is_closed())}}
In #283 I noticed something - We don't have a way to disconnect or sever a connection between two parties.
How can we go about this?
This is super useful. In a client/server architecture, the server may want to kick the client, for example!
The text was updated successfully, but these errors were encountered: