summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Alessandrelli <fabio.alessandrelli@gmail.com>2022-06-19 13:48:20 +0200
committerGitHub <noreply@github.com>2022-06-19 13:48:20 +0200
commit426ca6cc8e46eeb5ba66f151f531303babc24267 (patch)
treecb1078df959dd2bdb371f543d2a1e6fd060a7ee3
parente41d2903adbd36353df96c016555343a8e44302b (diff)
parent9b53ef3325f630db10eba3a126b8435cfd52df32 (diff)
downloadfork-godot-webrtc-native-426ca6cc8e46eeb5ba66f151f531303babc24267.tar.gz
fork-godot-webrtc-native-426ca6cc8e46eeb5ba66f151f531303babc24267.tar.bz2
fork-godot-webrtc-native-426ca6cc8e46eeb5ba66f151f531303babc24267.zip
Merge pull request #56 from Faless/fix/write_mode
Fix default data channel write mode to binary.
-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;