Discover LAN servers and relay authenticated browser peer connections

This commit is contained in:
2026-11-08 21:57:05 +00:00
parent 89814d9fbe
commit 349428f11d
13 changed files with 1265 additions and 8 deletions
+3 -2
View File
@@ -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
+14
View File
@@ -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"`
}