Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AnswerAddr *string = nil
AnswerAddr represents the product project address that is inactive until an offer arrives from the platform side.
View Source
var Certificates tls.Certificate = tls.Certificate{}
View Source
var Config webrtc.Configuration = webrtc.Configuration{ ICEServers: []webrtc.ICEServer{ { URLs: []string{TurnServerAddress, StunServerAddress}, Username: TurnAuthUserName, Credential: TurnAuthCredential, CredentialType: webrtc.ICECredentialTypePassword, }, }, ICETransportPolicy: webrtc.ICETransportPolicyRelay, }
View Source
var OfferAddr *string = nil
OfferAddr represents the address of the platform, that initiates webRTC with an offer.
View Source
var SendingFrequency time.Duration = 500 * time.Millisecond
SendingFrequency determines how often a message is sent via webRTC.
View Source
var StunServerAddress string = "stun:turn-server:5349?transport=udp"
View Source
var TurnAuthCredential string = "default123secret"
View Source
var TurnAuthUserName string = "defaultUser"
View Source
var TurnServerAddress string = "turns:turn-server:5349?transport=udp"
Functions ¶
func SetupPlatformSide ¶
SetupPlatformSide initializes the webrtc connection and sends the initial offer to the product project candidates identified by candidate id.
func SetupProductSide ¶
SetupProductSide sets up the webrtc connection on the product project side Each product project will have its own candidate id that is known for the platform side for identification purposes.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.