ws

package
v0.0.0-...-11d313d Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Listen

func Listen(subscriptionRequest string, handlerFunction Handler, data interface{})

func SetPath

func SetPath(p string)

func SetRpcUrl

func SetRpcUrl(ru string)

var g_subscribe = `{"jsonrpc":"2.0", "id": 1, "method": "eth_subscribe", "params": ["newPendingTransactions"]}`

Types

type Handler

type Handler interface {
	Handle(data interface{}, message []byte) error
}

Jump to

Keyboard shortcuts

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