Skip to content

Commit

Permalink
client: subscribe event->query
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Dec 9, 2017
1 parent 6522910 commit efbc4b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions client/proxy.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ func RPCRoutes(c rpcclient.Client) map[string]*rpc.RPCFunc {
// Subscribe/unsubscribe are reserved for websocket events.
// We can just use the core tendermint impl, which uses the
// EventSwitch we registered in NewWebsocketManager above
"subscribe": rpc.NewWSRPCFunc(core.Subscribe, "event"),
"unsubscribe": rpc.NewWSRPCFunc(core.Unsubscribe, "event"),
"subscribe": rpc.NewWSRPCFunc(core.Subscribe, "query"),
"unsubscribe": rpc.NewWSRPCFunc(core.Unsubscribe, "query"),

// info API
"status": rpc.NewRPCFunc(c.Status, ""),
Expand Down

0 comments on commit efbc4b9

Please sign in to comment.