Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ISignalServer ¶
type JSONSignal ¶
func NewJSONSignal ¶
func NewJSONSignal(p *forwarder.Peer) *JSONSignal
type Join ¶
type Join struct { GID string `json:"sid"` UID string `json:"uid"` Offer webrtc.SessionDescription `json:"offer"` Config forwarder.JoinConfig `json:"config"` }
Join message sent when initializing a peer connection
type Negotiation ¶
type Negotiation struct {
Desc webrtc.SessionDescription `json:"desc"`
}
Negotiation message sent when renegotiating the peer connection
type SfuSettings ¶
type SignalServer ¶
type SignalServer struct {
// contains filtered or unexported fields
}
func NewSignalServer ¶
func NewSignalServer(ctx context.Context, settings SignalServerSettings) *SignalServer
func (*SignalServer) OnClose ¶
func (ss *SignalServer) OnClose(f func())
func (*SignalServer) Run ¶
func (ss *SignalServer) Run() error
func (*SignalServer) Shutdown ¶
func (ss *SignalServer) Shutdown() error
type SignalServerSettings ¶
type SignalServerSettings struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.