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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
serverandclient command

Jump to

Keyboard shortcuts

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