mirror of
https://github.com/pion/webrtc.git
synced 2025-10-18 21:15:20 +08:00

MVP complete! Only implemented ondatachannel and onmessage but users can now recieve datachannel messages
11 lines
298 B
Go
11 lines
298 B
Go
package webrtc
|
|
|
|
// RTCDataChannel represents a WebRTC DataChannel
|
|
// The RTCDataChannel interface represents a network channel
|
|
// which can be used for bidirectional peer-to-peer transfers of arbitrary data
|
|
type RTCDataChannel struct {
|
|
Onmessage func([]byte)
|
|
ID uint16
|
|
Label string
|
|
}
|