Skip to content

Latest commit

 

History

History
37 lines (30 loc) · 838 Bytes

Connection.md

File metadata and controls

37 lines (30 loc) · 838 Bytes
layout title package category tags
reference
Connection.msg
gizmo_msgs
message
webrtc
kuri live

Message Definition

bool is_connected
string peer_id
bool are_all_peers_gone

Description

This message is to be published when WebRTC peers connect or disconnect. As a special case, a message with are_all_peers_gone set to true can be sent when it is known that no peers are connected, e.g. after a node respawn.

Arguments

is_connected

If set to true, a new peer connection has been established. Otherwise, the connection was just dropped.

peer_id

The unique ID of the peer.

are_all_peers_gone

If set to true, other fields can be left with default values. This will signify that the WebRTC node has lost all its peers.

Related Documentation

gizmo_webrtc_connections