Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultSTUNServers ¶
func DefaultSTUNServers() []string
Types ¶
type Credential ¶
type MessageType ¶
type MessageType string
const ( MessageTypeCandidate MessageType = "candidate" MessageTypeCredential MessageType = "credential" MessageTypeError MessageType = "error" )
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func (*Service) GetConn ¶ added in v0.0.2
func (s *Service) GetConn( ctx context.Context, peerPID mpc.PID, ) (_ <-chan *conn.PacketConn, err error)
GetPacketConn establishes an ICE-managed connection with a peer, and returns a *conn.PacketConn channel, which allows the client to subscribe to changes in the connection.
Based on https://github.com/pion/ice/tree/master/examples/ping-pong
Click to show internal directories.
Click to hide internal directories.