os

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: May 24, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const ModuleName = "net"

Variables

This section is empty.

Functions

func Enable

func Enable(runtime *goja.Runtime)

func Require

func Require(runtime *goja.Runtime, module *goja.Object)

Types

type NetModule

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

func (*NetModule) Connect

func (n *NetModule) Connect(call goja.FunctionCall) goja.Value

func (n *NetModule)Connect(host string, port int) (net.Conn, error) {

type Socket

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

func (*Socket) Address

func (s *Socket) Address(goja.FunctionCall) goja.Value

func (*Socket) Destroy

func (s *Socket) Destroy(goja.FunctionCall) goja.Value

func (*Socket) On

func (s *Socket) On(call goja.FunctionCall) goja.Value

func (*Socket) Once

func (s *Socket) Once(call goja.FunctionCall) goja.Value

func (*Socket) RemoveListener

func (s *Socket) RemoveListener(call goja.FunctionCall) goja.Value

Jump to

Keyboard shortcuts

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