ctxwebrtc

package module
v0.0.0-...-10efaa0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2022 License: LGPL-3.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithHighWaterMark

func WithHighWaterMark(highWaterMark uint) func(*DataChannel)

func WithLowWaterMark

func WithLowWaterMark(lowWaterMark uint) func(*DataChannel)

Types

type DataChannel

type DataChannel struct {
	// contains filtered or unexported fields
}

func WrapDataChannel

func WrapDataChannel(dc *webrtc.DataChannel, options ...func(*DataChannel)) *DataChannel

func (*DataChannel) Close

func (c *DataChannel) Close() error

func (*DataChannel) Recv

func (c *DataChannel) Recv(ctx context.Context) ([]byte, error)

func (*DataChannel) Send

func (c *DataChannel) Send(ctx context.Context, buf []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL