Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Treatments = []string{"mc-signaling-usewebsockets", "mc-signaling-useturn"}
Functions ¶
This section is empty.
Types ¶
type Conn ¶
type Conn struct {
// contains filtered or unexported fields
}
func (*Conn) Credentials ¶
func (c *Conn) Credentials() (*nethernet.Credentials, error)
type Dialer ¶
type Dialer struct { Options *websocket.DialOptions Logger *slog.Logger NetworkID uint64 }
func (*Dialer) DialContext ¶
func (d *Dialer) DialContext(ctx context.Context, src franchise.TokenConfigSource, env Environment) (*Conn, error)
type Environment ¶
type Message ¶
type Message struct { Type MessageType `json:"Type"` To json.Number `json:"To,omitempty"` From string `json:"From,omitempty"` Data string `json:"Message,omitempty"` }
type MessageType ¶
type MessageType uint32
const ( MessageTypePing MessageType = iota MessageTypeSignal MessageTypeCredentials )
Click to show internal directories.
Click to hide internal directories.