Categorygithub.com/sodefrin/wsjsonrpc
modulepackage
0.0.1
Repository: https://github.com/sodefrin/wsjsonrpc.git
Documentation: pkg.go.dev

# README

wsjsonrpc

func ExampleJsonRPC() {
	rpc, _ := NewJsonRPC("2.0", "wss://ws.lightstream.bitflyer.com/json-rpc", "https://ws.lightstream.bitflyer.com/json-rpc")

	type channel struct {
		Channel string `json:"channel"`
	}

	rpc.Send("subscribe", &channel{Channel: "lightning_board_BTC_JPY"}, nil)

	rpc.Recv()

	rpc.Close()

	fmt.Println("close")
	// Output: close
}

# Functions

No description provided by the author

# Structs

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author