diff --git a/client/proxy.go b/client/proxy.go index 0acb79031ad0..26d12069c16a 100644 --- a/client/proxy.go +++ b/client/proxy.go @@ -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, ""),