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 ¶
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
Click to show internal directories.
Click to hide internal directories.