MCPcopy
hub / github.com/pion/webrtc / DetachDataChannels

Method DetachDataChannels

settingengine.go:215–217  ·  view source on GitHub ↗

DetachDataChannels enables detaching data channels. When enabled data channels have to be detached in the OnOpen callback using the DataChannel.Detach method.

()

Source from the content-addressed store, hash-verified

213// data channels have to be detached in the OnOpen callback using the
214// DataChannel.Detach method.
215func (e *SettingEngine) DetachDataChannels() {
216 e.detach.DataChannels = true
217}
218
219// EnableDataChannelBlockWrite allows data channels to block on write,
220// it only works if DetachDataChannels is enabled.

Callers 10

TestEOFFunction · 0.95
TestDetachDataChannelsFunction · 0.95
TestNewAPI_OptionsFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95

Calls

no outgoing calls