Documentation
¶
Index ¶
Constants ¶
View Source
const CONNECT_FAIL string = "CONNECTION_FAIL"
View Source
const CONNECT_REQ string = "CONNECT_REQ"
Signal connection messages
View Source
const CONNECT_SIGNAL string = "CONNECT_SIGNAL"
View Source
const DISCONNECT_REQ string = "DISCONNECT_REQ"
View Source
const DISCONNECT_SIGNAL string = "DISCONNECT_SIGNAL"
View Source
const ICE_SIGNAL string = "ICE_SIGNAL"
View Source
const OFFER_ACC string = "OFFER_ACC"
View Source
const OFFER_REQ string = "OFFER_REQ"
Offer connection category
View Source
const SKIP_REQ string = "SKIP_REQ"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { From string `json:"from,omitempty"` To string `json:"to"` Category string `json:"category,omitempty"` MessageType MessageCategory `json:"messageType"` Content interface{} `json:"content"` }
type MessageCategory ¶
type MessageCategory string
const CHAT MessageCategory = "CHAT"
const ID MessageCategory = "ID"
const OFFER MessageCategory = "OFFER"
const SIGNAL MessageCategory = "SIGNAL"
Message categories
Click to show internal directories.
Click to hide internal directories.