datachannelmessage.go 286 B

12345678910
  1. package webrtc
  2. // DataChannelMessage represents a message received from the
  3. // data channel. IsString will be set to true if the incoming
  4. // message is of the string type. Otherwise the message is of
  5. // a binary type.
  6. type DataChannelMessage struct {
  7. IsString bool
  8. Data []byte
  9. }