You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-08 12:40:44 +00:00
Fix "IDHandler.get_prop is not a function" error when calling some methods on WebRTCDataChannel
This commit is contained in:
@@ -133,12 +133,12 @@ const GodotRTCDataChannel = {
|
|||||||
|
|
||||||
godot_js_rtc_datachannel_is_ordered__sig: 'ii',
|
godot_js_rtc_datachannel_is_ordered__sig: 'ii',
|
||||||
godot_js_rtc_datachannel_is_ordered: function (p_id) {
|
godot_js_rtc_datachannel_is_ordered: function (p_id) {
|
||||||
return IDHandler.get_prop(p_id, 'ordered', true);
|
return GodotRTCDataChannel.get_prop(p_id, 'ordered', true);
|
||||||
},
|
},
|
||||||
|
|
||||||
godot_js_rtc_datachannel_id_get__sig: 'ii',
|
godot_js_rtc_datachannel_id_get__sig: 'ii',
|
||||||
godot_js_rtc_datachannel_id_get: function (p_id) {
|
godot_js_rtc_datachannel_id_get: function (p_id) {
|
||||||
return IDHandler.get_prop(p_id, 'id', 65535);
|
return GodotRTCDataChannel.get_prop(p_id, 'id', 65535);
|
||||||
},
|
},
|
||||||
|
|
||||||
godot_js_rtc_datachannel_max_packet_lifetime_get__sig: 'ii',
|
godot_js_rtc_datachannel_max_packet_lifetime_get__sig: 'ii',
|
||||||
@@ -158,12 +158,12 @@ const GodotRTCDataChannel = {
|
|||||||
|
|
||||||
godot_js_rtc_datachannel_max_retransmits_get__sig: 'ii',
|
godot_js_rtc_datachannel_max_retransmits_get__sig: 'ii',
|
||||||
godot_js_rtc_datachannel_max_retransmits_get: function (p_id) {
|
godot_js_rtc_datachannel_max_retransmits_get: function (p_id) {
|
||||||
return IDHandler.get_prop(p_id, 'maxRetransmits', 65535);
|
return GodotRTCDataChannel.get_prop(p_id, 'maxRetransmits', 65535);
|
||||||
},
|
},
|
||||||
|
|
||||||
godot_js_rtc_datachannel_is_negotiated__sig: 'ii',
|
godot_js_rtc_datachannel_is_negotiated__sig: 'ii',
|
||||||
godot_js_rtc_datachannel_is_negotiated: function (p_id) {
|
godot_js_rtc_datachannel_is_negotiated: function (p_id) {
|
||||||
return IDHandler.get_prop(p_id, 'negotiated', 65535);
|
return GodotRTCDataChannel.get_prop(p_id, 'negotiated', 65535);
|
||||||
},
|
},
|
||||||
|
|
||||||
godot_js_rtc_datachannel_label_get__sig: 'ii',
|
godot_js_rtc_datachannel_label_get__sig: 'ii',
|
||||||
|
|||||||
Reference in New Issue
Block a user