signaling

package
v0.1.4-alpha Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SignalingClient

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

func NewSignalingClient

func NewSignalingClient(
	onAcceptance func(conn *websocket.Conn, uuid string) error,
	onIntroduction func(conn *websocket.Conn, data []byte, uuid string, wg *sync.WaitGroup) error,
	onOffer func(conn *websocket.Conn, data []byte, candidates *chan string, wg *sync.WaitGroup, uuid string) error,
	onAnswer func(data []byte, candidates *chan string, wg *sync.WaitGroup) error,
	onCandidate func(data []byte, candidates *chan string) error,
	onResignation func() error,
) *SignalingClient

func (*SignalingClient) HandleConn

func (s *SignalingClient) HandleConn(laddrKey string, communityKey string, f func(msg webrtc.DataChannelMessage))

type SignalingServer

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

func NewSignalingServer

func NewSignalingServer(
	onApplication func(application api.Application, conn *websocket.Conn) error,
	onReady func(ready api.Ready, conn *websocket.Conn) error,
	onOffer func(offer api.Offer) error,
	onAnswer func(answer api.Answer) error,
	onCandidate func(candidate api.Candidate) error,
	onExited func(exited api.Exited) error,
) *SignalingServer

func (*SignalingServer) HandleConn

func (s *SignalingServer) HandleConn(conn websocket.Conn)

Jump to

Keyboard shortcuts

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