ws

package module
v0.0.5-alpha Latest Latest
Warning

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

Go to latest
Published: May 7, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const WS_CONN = object.Type("ws.conn")

Variables

This section is empty.

Functions

func Dial

func Dial(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

Module returns the `ch` module object

Types

type WsConn

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

func New

func New(ctx context.Context, conn *websocket.Conn) *WsConn

func (*WsConn) Close

func (c *WsConn) Close(ctx context.Context, args ...object.Object) object.Object

func (*WsConn) Cost

func (c *WsConn) Cost() int

func (*WsConn) Equals

func (c *WsConn) Equals(other object.Object) object.Object

func (*WsConn) GetAttr

func (c *WsConn) GetAttr(name string) (object.Object, bool)

func (*WsConn) Inspect

func (c *WsConn) Inspect() string

func (*WsConn) Interface

func (c *WsConn) Interface() interface{}

func (*WsConn) IsTruthy

func (c *WsConn) IsTruthy() bool

func (*WsConn) MarshalJSON

func (c *WsConn) MarshalJSON() ([]byte, error)

func (*WsConn) Read

func (c *WsConn) Read(ctx context.Context, args ...object.Object) object.Object

func (*WsConn) RunOperation

func (c *WsConn) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*WsConn) SetAttr

func (c *WsConn) SetAttr(name string, value object.Object) error

func (*WsConn) Type

func (c *WsConn) Type() object.Type

func (*WsConn) Value

func (c *WsConn) Value() *websocket.Conn

func (*WsConn) Write

func (c *WsConn) Write(ctx context.Context, args ...object.Object) object.Object

Jump to

Keyboard shortcuts

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