File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -438,8 +438,11 @@ func (d *DataChannel) ensureOpen() error {
438
438
return nil
439
439
}
440
440
441
- // Detach allows you to detach the underlying datachannel. This provides
442
- // an idiomatic API to work with, however it disables the OnMessage callback.
441
+ // Detach allows you to detach the underlying datachannel.
442
+ // This provides an idiomatic API to work with
443
+ // (`io.ReadWriteCloser` with its `.Read()` and `.Write()` methods,
444
+ // as opposed to `.Send()` and `.OnMessage`),
445
+ // however it disables the OnMessage callback.
443
446
// Before calling Detach you have to enable this behavior by calling
444
447
// webrtc.DetachDataChannels(). Combining detached and normal data channels
445
448
// is not supported.
You can’t perform that action at this time.
0 commit comments