diff options
Diffstat (limited to 'src/WebRTCLibDataChannel.cpp')
-rw-r--r-- | src/WebRTCLibDataChannel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/WebRTCLibDataChannel.cpp b/src/WebRTCLibDataChannel.cpp index f29d562..bab9c79 100644 --- a/src/WebRTCLibDataChannel.cpp +++ b/src/WebRTCLibDataChannel.cpp @@ -144,6 +144,11 @@ bool WebRTCLibDataChannel::is_negotiated() const { return channel->negotiated(); } +int WebRTCLibDataChannel::get_buffered_amount() const { + ERR_FAIL_COND_V(channel.get() == nullptr, 0); + return channel->buffered_amount(); +} + godot_error WebRTCLibDataChannel::poll() { return GODOT_OK; } |