websocket

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: BSD-3-Clause Imports: 26 Imported by: 0

Documentation

Overview

Package websocket is the editor for WebSocket requests: a connection the user opens, sends messages on, and watches.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

func Open

func Open(req *domain.Request, deps container.Deps) *Container

func (*Container) Close

func (c *Container) Close()

Close disconnects: a tab that is gone must not keep a socket open.

func (*Container) Dirty

func (c *Container) Dirty() bool

func (*Container) ID

func (c *Container) ID() string

func (*Container) Kind

func (c *Container) Kind() container.Kind

func (*Container) Layout

func (c *Container) Layout(ctx *ui.Ctx) ui.View

func (*Container) Save

func (c *Container) Save() error

func (*Container) Send

func (c *Container) Send()

Send is ⌘↵: it connects, or once connected sends the message being written.

func (*Container) TabIcon

func (c *Container) TabIcon(th *theme.Theme) (icons.Icon, render.Color)

TabIcon shows the request's badge, the one its row in the tree shows.

func (*Container) Title

func (c *Container) Title() string

Jump to

Keyboard shortcuts

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