# 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
# Type aliases
No description provided by the author