From 9b53ef3325f630db10eba3a126b8435cfd52df32 Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sun, 19 Jun 2022 12:18:49 +0200 Subject: 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. --- src/WebRTCLibDataChannel.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 channel = nullptr; - WriteMode write_mode = WRITE_MODE_TEXT; + WriteMode write_mode = WRITE_MODE_BINARY; ChannelState channel_state = STATE_CONNECTING; bool negotiated = false; -- cgit v1.2.3