gojsonrpc2clientweb

package module
v0.0.0-...-dbb7745 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

README

websocket wasm jsonrpc2 client for browsers

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReadObjectS

type ReadObjectS struct {
	MessageEvent *events.MessageEvent
	ErrorEvent   *events.ErrorEvent
	CloseEvent   *events.CloseEvent
}

type WebSocketClientObjectStream

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

func NewWebSocketClientObjectStream

func NewWebSocketClientObjectStream(
	options *WebSocketClientObjectStreamOptions,
) (
	*WebSocketClientObjectStream,
	error,
)

func (*WebSocketClientObjectStream) Close

func (self *WebSocketClientObjectStream) Close() error

func (*WebSocketClientObjectStream) ReadObject

func (self *WebSocketClientObjectStream) ReadObject(v interface{}) error

func (*WebSocketClientObjectStream) WriteObject

func (self *WebSocketClientObjectStream) WriteObject(obj interface{}) error

type WebSocketClientObjectStreamOptions

type WebSocketClientObjectStreamOptions struct {
	WebSocket                *ws.WS
	GetCloseCodeAndMessageCB func() (*int, *string)
}

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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