Documentation
¶
Index ¶
- Variables
- func DissolvePeerConnections()
- func Init(ctx context.Context, wg *sync.WaitGroup, turnCfgs []ncconfig.TurnConfig)
- func ShouldUseTurn(natType string) bool
- func SignalPeer(serverName string, signal nm_models.Signal) error
- func WatchPeerConnections(ctx context.Context, waitg *sync.WaitGroup)
- func WatchPeerSignals(ctx context.Context, wg *sync.WaitGroup)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func DissolvePeerConnections ¶ added in v0.20.0
func DissolvePeerConnections()
DissolvePeerConnections - notifies all peers to disconnect from using turn.
func ShouldUseTurn ¶
ShouldUseTurn - checks the nat type to check if peer needs to use turn for communication
func SignalPeer ¶
SignalPeer - signals the peer with host's turn relay endpoint
func WatchPeerConnections ¶ added in v0.20.0
WatchPeerConnections - periodically watches peer connections. if connection is bad, host will signal peers to use turn
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.