Discover LAN servers and relay authenticated browser peer connections
This commit is contained in:
@@ -287,8 +287,9 @@ type Message struct {
|
||||
// AttentionAcks is the ack_attention body, the attention_acks reply (the
|
||||
// whole set) and the attention_acks_changed push (the delta). See
|
||||
// attention_acks.go.
|
||||
AttentionAcks *AttentionAcks `json:"attention_acks,omitempty"`
|
||||
ServerStats *ServerStats `json:"server_stats,omitempty"`
|
||||
AttentionAcks *AttentionAcks `json:"attention_acks,omitempty"`
|
||||
DiscoveredServers []DiscoveredServer `json:"discovered_servers,omitzero"`
|
||||
ServerStats *ServerStats `json:"server_stats,omitempty"`
|
||||
// App notification stream (see notifications.go): After is the
|
||||
// subscribe_notifications cursor, Notifications the subscribe reply,
|
||||
// Notification one push, and IDs the clear_notifications request, the
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package protocol
|
||||
|
||||
const (
|
||||
DiscoverServersRequest = "discover_servers"
|
||||
DiscoverServersResult = "discovered_servers"
|
||||
)
|
||||
|
||||
// DiscoveredServer is one Pipelines DNS-SD advertisement on the serving LAN.
|
||||
type DiscoveredServer struct {
|
||||
Name string `json:"name"`
|
||||
Endpoint string `json:"endpoint"`
|
||||
Auth string `json:"auth"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
Reference in New Issue
Block a user