server

package
v0.0.0-...-aa7bf5c Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NatsChannel = "sfu."
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Join

type Join struct {
	SID    string                    `json:"sid"`
	UID    string                    `json:"uid"`
	Token  string                    `json:"token"`
	Offer  webrtc.SessionDescription `json:"offer"`
	Config sfu.JoinConfig            `json:"config"`
}

Join message sent when initializing a peer connection

type NatsSignal

type NatsSignal struct {
	emission.Emitter
	// contains filtered or unexported fields
}

func NewNatsSignal

func NewNatsSignal(s *sfu.SFU, n *nats.Conn, c *config.Config) *NatsSignal

func (*NatsSignal) ClaimToken

func (n *NatsSignal) ClaimToken(id uuid.UUID) (string, error)

func (*NatsSignal) ParseToken

func (n *NatsSignal) ParseToken(t string) (*jwt.Token, error)

func (*NatsSignal) StartListen

func (n *NatsSignal) StartListen()

func (*NatsSignal) StartServer

func (n *NatsSignal) StartServer()

type Negotiation

type Negotiation struct {
	Uid  string                    `json:"uid"`
	Desc webrtc.SessionDescription `json:"desc"`
}

Negotiation message sent when renegotiating the peer connection

type Trickle

type Trickle struct {
	Uid       string                  `json:"uid"`
	Target    int                     `json:"target"`
	Candidate webrtc.ICECandidateInit `json:"candidate"`
}

Trickle message sent when renegotiating the peer connection

Jump to

Keyboard shortcuts

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