From abb45f5fe7a1d5a44511675ee8695cc3859698b1 Mon Sep 17 00:00:00 2001 From: David Snopek Date: Tue, 20 Jul 2021 11:44:40 -0500 Subject: Add get_buffered_amount() to WebRTCDataChannel --- modules/webrtc/webrtc_data_channel.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules/webrtc/webrtc_data_channel.cpp') diff --git a/modules/webrtc/webrtc_data_channel.cpp b/modules/webrtc/webrtc_data_channel.cpp index 004112f992..ca520a733d 100644 --- a/modules/webrtc/webrtc_data_channel.cpp +++ b/modules/webrtc/webrtc_data_channel.cpp @@ -46,6 +46,7 @@ void WebRTCDataChannel::_bind_methods() { ClassDB::bind_method(D_METHOD("get_max_retransmits"), &WebRTCDataChannel::get_max_retransmits); ClassDB::bind_method(D_METHOD("get_protocol"), &WebRTCDataChannel::get_protocol); ClassDB::bind_method(D_METHOD("is_negotiated"), &WebRTCDataChannel::is_negotiated); + ClassDB::bind_method(D_METHOD("get_buffered_amount"), &WebRTCDataChannel::get_buffered_amount); ADD_PROPERTY(PropertyInfo(Variant::INT, "write_mode", PROPERTY_HINT_ENUM), "set_write_mode", "get_write_mode"); -- cgit v1.2.3