sfu

package
v0.0.0-...-a4649ec Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Peer

type Peer struct {
	*webrtc.PeerConnection
	// contains filtered or unexported fields
}

func (*Peer) Close

func (p *Peer) Close() (err error)

func (*Peer) HandleSignals

func (p *Peer) HandleSignals()

func (*Peer) Signal

func (p *Peer) Signal(name string, data any) error

type Session

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

func NewSession

func NewSession() *Session

func (*Session) AddPeer

func (s *Session) AddPeer(conn *websocket.Conn) (*Peer, error)

func (*Session) Sync

func (s *Session) Sync()

Jump to

Keyboard shortcuts

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