Live video on the AT Protocol
1package spxrpc
2
3import (
4 "context"
5 "fmt"
6
7 comatprototypes "github.com/bluesky-social/indigo/api/atproto"
8)
9
10func (s *Server) handleComAtprotoServerDescribeServer(ctx context.Context) (*comatprototypes.ServerDescribeServer_Output, error) {
11 did := fmt.Sprintf("did:web:%s", s.cli.BroadcasterHost)
12 trueVar := true
13 return &comatprototypes.ServerDescribeServer_Output{
14 Did: did,
15 InviteCodeRequired: &trueVar,
16 AvailableUserDomains: []string{
17 fmt.Sprintf(".%s", s.cli.BroadcasterHost),
18 },
19 }, nil
20}