package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Dec 12, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
var ErrTimeout = errors.New("Peer connection timed out, this mostly happens when the other peer is down")
ErrTimeout is sent back after the RTCConnection times out
type Session struct {
RemotePeer struct {
PubKey string
NickName string
}
Listener *net.Listener
*webrtc.PeerConnection
}
Session holds all the session information for a WebRTC session
Init initializes a WebRTC session as an offer
InitAnswer initializes a WebRTC session as an answer
Sessions holds a map for open RTC sessions and the assigned ports
Init initializes the session maps with empty values
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.