summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-19 12:18:49 +0200
committerFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-19 12:18:49 +0200
commit9b53ef3325f630db10eba3a126b8435cfd52df32 (patch)
treecb1078df959dd2bdb371f543d2a1e6fd060a7ee3
parente41d2903adbd36353df96c016555343a8e44302b (diff)
downloadfork-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.hpp2
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;