diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-06-19 12:18:49 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-06-19 12:18:49 +0200 |
commit | 9b53ef3325f630db10eba3a126b8435cfd52df32 (patch) | |
tree | cb1078df959dd2bdb371f543d2a1e6fd060a7ee3 | |
parent | e41d2903adbd36353df96c016555343a8e44302b (diff) | |
download | fork-godot-webrtc-native-9b53ef3325f630db10eba3a126b8435cfd52df32.tar.gz fork-godot-webrtc-native-9b53ef3325f630db10eba3a126b8435cfd52df32.tar.bz2 fork-godot-webrtc-native-9b53ef3325f630db10eba3a126b8435cfd52df32.zip |
Fix default data channel write mode to binary.
It's the engine expected default, and the least surprising for the users
since it allows any data to be sent, while text mode requires valid UTF.
-rw-r--r-- | src/WebRTCLibDataChannel.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/WebRTCLibDataChannel.hpp b/src/WebRTCLibDataChannel.hpp index b79eeaa..05f1ceb 100644 --- a/src/WebRTCLibDataChannel.hpp +++ b/src/WebRTCLibDataChannel.hpp @@ -61,7 +61,7 @@ private: QueuedPacket current_packet; std::shared_ptr<rtc::DataChannel> channel = nullptr; - WriteMode write_mode = WRITE_MODE_TEXT; + WriteMode write_mode = WRITE_MODE_BINARY; ChannelState channel_state = STATE_CONNECTING; bool negotiated = false; |