Documentation
¶
Index ¶
- type Msg
- func CreateRoomMsg() Msg
- func CreateRoomResponseMsg(RoomID string) Msg
- func Decode(b []byte) (msg Msg)
- func GuestDisconnectedMsg(LostConnectionId uuid.UUID) Msg
- func IceAuthInitiateMsg(ufrag, pwd string) Msg
- func IceAuthResponseMsg(ufrag, pwd string, To uuid.UUID) Msg
- func IceCandidateForGuestMsg(candidate string, To uuid.UUID) Msg
- func IceCandidateForOwnerMsg(candidate string) Msg
- func JoinRoomRequestMsg(RoomID string) Msg
- func KickMsg(Target uuid.UUID) Msg
- func PingMsg() Msg
- type Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Msg ¶
type Msg struct { Type Success bool Cause string // why is Success false RoomID string // Id of the connection this message is related to in some way From, To uuid.UUID //role depends on message type // ICE Ufrag, Pwd, Candidate string // contains filtered or unexported fields }
func CreateRoomResponseMsg ¶
server responds with room created message and sends RoomID
func GuestDisconnectedMsg ¶
sent to owner when a guest disconnects.
func IceAuthInitiateMsg ¶
the guest initiates the ice auth
func IceAuthResponseMsg ¶
owner responds with its own credentials
func IceCandidateForOwnerMsg ¶
Click to show internal directories.
Click to hide internal directories.