datachannelmessage.go 388 B

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