transport

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package transport owns the agent's single WebSocket and serialized writer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	URL      string
	Token    string
	Dialer   *websocket.Dialer
	Hello    func() protocol.Message
	Incoming chan protocol.Message
	Status   chan bool
	// contains filtered or unexported fields
}

func New

func New(url, token string) *Client

func (*Client) Connected

func (c *Client) Connected() bool

func (*Client) Dropped

func (c *Client) Dropped() uint64

func (*Client) Run

func (c *Client) Run(ctx context.Context)

func (*Client) Send

func (c *Client) Send(m protocol.Message, critical bool) bool

Jump to

Keyboard shortcuts

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