github.com/pion/webrtc/v4@v4.0.1/datachannelmessage.go (about) 1 // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> 2 // SPDX-License-Identifier: MIT 3 4 package webrtc 5 6 // DataChannelMessage represents a message received from the 7 // data channel. IsString will be set to true if the incoming 8 // message is of the string type. Otherwise the message is of 9 // a binary type. 10 type DataChannelMessage struct { 11 IsString bool 12 Data []byte 13 }