webrtc

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package webrtc contains transports for WebRTC.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSignalTransport

func NewSignalTransport(opts SignalOptions) transport.WebRTCSignalTransport

NewSignalTransport returns a new WebRTC signaling transport that attempts to negotiate a WebRTC connection using the Webmesh WebRTC signaling server. This is typically used by clients trying to create a proxy connection to a server.

Types

type SignalOptions

type SignalOptions struct {
	// Resolver is a resolver for looking up nodes with the ICE negotiation feature.
	Resolver transport.FeatureResolver
	// Transport is the transport for creating gRPC connections.
	Transport transport.RPCTransport
	// NodeID is the id of the remote node to signal to.
	NodeID string
	// TargetProto is the target protocol to request from the remote node.
	TargetProto string
	// TargetAddr is the target address to request from the remote node.
	TargetAddr netip.AddrPort
}

SignalOptions are options for configuring the WebRTC transport.

Jump to

Keyboard shortcuts

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