websocket

package
v0.0.0-...-eb85b02 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2023 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Transport

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

func NewTransport

func NewTransport(url string) (*Transport, error)

func (*Transport) Call

func (caller *Transport) Call(api caller.APIID, method string, args []interface{}, reply interface{}) error

func (*Transport) Close

func (caller *Transport) Close() error

Close calls the underlying web socket Close method. If the connection is already shutting down, ErrShutdown is returned.

func (*Transport) SetCallback

func (caller *Transport) SetCallback(api caller.APIID, method string, notice func(args json.RawMessage)) error

Jump to

Keyboard shortcuts

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