net

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

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

func New

func New(runtime *bridge.Runtime, allowListen bool) *Module

func (*Module) AttachSocket added in v1.8.0

func (m *Module) AttachSocket(vm *goja.Runtime, socket *goja.Object, connection net.Conn) bool

func (*Module) DetachSocket added in v1.8.0

func (m *Module) DetachSocket(ctx context.Context, socket *goja.Object) (net.Conn, error)

func (*Module) Load

func (m *Module) Load(vm *goja.Runtime, module *goja.Object)

func (*Module) PrepareDetachSocket added in v1.8.0

func (m *Module) PrepareDetachSocket(socket *goja.Object) error

PrepareDetachSocket runs on the event loop so that no subsequent writes can enter the plaintext queue after the upgrade has been requested.

Jump to

Keyboard shortcuts

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