1
1
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 05:11:06 +02:00
This commit is contained in:
Zack Scholl 2019-11-19 16:30:46 -08:00
parent 02b751cae2
commit 32dee5b559

View file

@ -351,18 +351,19 @@ func (c *Client) CreateOfferer(finished chan<- error) (pc *webrtc.PeerConnection
// ordered := true
// maxRetransmits := uint16(0)
var id uint16 = 5
var id uint16 = 1
var negotiated = true
options := &webrtc.DataChannelInit{
// Ordered: &ordered,
// MaxRetransmits: &maxRetransmits,
Negotiated: &negotiated,
ID: &id,
}
_ = options
sendMoreCh := make(chan struct{})
// Create a datachannel with label 'data'
dc, err := pc.CreateDataChannel("data1098", nil)
dc, err := pc.CreateDataChannel("data", options)
if err != nil {
log.Error(err)
return