messaging

package
v1.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func (*Conn) Close

func (j *Conn) Close() (err error)

func (*Conn) Context

func (c *Conn) Context() context.Context

func (*Conn) Credentials

func (j *Conn) Credentials(ctx context.Context) (*nethernet.Credentials, error)

func (*Conn) MessagingID

func (j *Conn) MessagingID() uuid.UUID

func (*Conn) NetworkID

func (j *Conn) NetworkID() string

func (*Conn) Notify

func (c *Conn) Notify(signals chan<- *nethernet.Signal) (stop func())

func (*Conn) PongData

func (j *Conn) PongData([]byte)

func (*Conn) ReadSignal

func (c *Conn) ReadSignal() (*nethernet.Signal, error)

func (*Conn) Signal

func (j *Conn) Signal(ctx context.Context, signal *nethernet.Signal) error

type Dialer

type Dialer struct {
	Options *websocket.DialOptions
	Log     *slog.Logger
}

func (Dialer) DialContext

func (d Dialer) DialContext(ctx context.Context, mct *service.Token) (*Conn, error)

type Environment

type Environment struct {
	ServiceURI string `json:"serviceUri"`
	StunURI    string `json:"stunUri"`
	TurnURI    string `json:"turnUri"`
}

func (*Environment) ServiceName

func (e *Environment) ServiceName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL