mirror of
https://github.com/servo/servo.git
synced 2025-07-23 23:33:43 +01:00
RTCDataChannel.readyState getter
This commit is contained in:
parent
9d456d5d17
commit
7db485aeb2
4 changed files with 47 additions and 4 deletions
|
@ -320,7 +320,8 @@ impl RTCPeerConnection {
|
|||
DataChannelEvent::Close => channel.on_close(),
|
||||
DataChannelEvent::Error(error) => channel.on_error(error),
|
||||
DataChannelEvent::OnMessage(message) => channel.on_message(message),
|
||||
_ => unreachable!(),
|
||||
DataChannelEvent::StateChange(state) => channel.on_state_change(state),
|
||||
DataChannelEvent::NewChannel => unreachable!(),
|
||||
}
|
||||
} else {
|
||||
debug_assert!(false, "Got an event for an unregistered data channel");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue