Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct {
Type string `json:"type"`
Payload Payload `json:"payload"`
Src string `json:"src"`
Dst string `json:"dst,omitempty"`
}
Message the IMessage implementation
func (Message) GetPayload ¶
GetPayload returns the message payload
type Payload ¶
type Payload struct {
Type string `json:"type"`
ConnectionID string `json:"connectionId"`
Metadata interface{} `json:"metadata,omitempty"`
Label string `json:"label,omitempty"`
Serialization string `json:"serialization,omitempty"`
Reliable bool `json:"reliable,omitempty"`
Candidate *webrtc.ICECandidateInit `json:"candidate,omitempty"`
SDP *webrtc.SessionDescription `json:"sdp,omitempty"`
Browser string `json:"browser,omitempty"`
Msg string `json:"msg,omitempty"`
}
Payload wraps a message payload
Click to show internal directories.
Click to hide internal directories.