client

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SfuClient

type SfuClient struct {
	*sdk.WebRTCTransport
	Sid       string
	Connected bool
}

func (*SfuClient) Join

func (s *SfuClient) Join(peerId string, sid string)

type SfuClientPool

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

func NewSfuClientPool

func NewSfuClientPool(config sdk.Config) (*SfuClientPool, error)

func (*SfuClientPool) Create

func (s *SfuClientPool) Create(peerId string, sid string) (*SfuClient, error)

func (*SfuClientPool) Get

func (s *SfuClientPool) Get(peerId string, sid string) *SfuClient

GetTransport returns a webrtc transport for a session

func (*SfuClientPool) Receive

func (this *SfuClientPool) Receive(peerId string, sid string, payload map[string]interface{}) (interface{}, error)

func (*SfuClientPool) Stats

func (s *SfuClientPool) Stats(cycle int) string

Stats show all sfu client stats

Jump to

Keyboard shortcuts

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