From 5b1fc27467c34fad4cb1e4c3bf87449804b7b746 Mon Sep 17 00:00:00 2001 From: Alexander Emelin Date: Wed, 15 Jul 2020 10:18:23 +0300 Subject: [PATCH] update centrifuge-go to 0.5.2, support NamedRPC --- Gopkg.lock | 6 +++--- Gopkg.toml | 2 +- client.go | 5 +++++ 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Gopkg.lock b/Gopkg.lock index eff6a36..c715938 100644 --- a/Gopkg.lock +++ b/Gopkg.lock @@ -2,12 +2,12 @@ [[projects]] - digest = "1:b58b82f03269c14a013b9b6c6d49fb0d37f1ced9c7ecab42b7b6887f9b31901a" + digest = "1:34c2505c82d5a66e6416edff3143079fde53a00d1823df36728ba764038e5982" name = "github.com/centrifugal/centrifuge-go" packages = ["."] pruneopts = "UT" - revision = "9794a386af66abc5ad05dea24233cd9e493505c2" - version = "v0.5.0" + revision = "1d40ffb82b55e36e6872a06dca22a59ece30bef6" + version = "v0.5.2" [[projects]] digest = "1:4f572b02cb237a3b86fb8158d30efd1265937062573e8348699a522add93af8b" diff --git a/Gopkg.toml b/Gopkg.toml index fde1c51..bb79f79 100644 --- a/Gopkg.toml +++ b/Gopkg.toml @@ -27,7 +27,7 @@ [[constraint]] name = "github.com/centrifugal/centrifuge-go" - version = "0.5.0" + version = "0.5.2" [prune] go-tests = true diff --git a/client.go b/client.go index 657af89..b83be36 100644 --- a/client.go +++ b/client.go @@ -80,6 +80,11 @@ func (c *Client) RPC(data []byte) ([]byte, error) { return c.client.RPC(data) } +// NamedRPC allows to make RPC with method. +func (c *Client) NamedRPC(method string, data []byte) ([]byte, error) { + return c.client.NamedRPC(method, data) +} + // Close closes Client connection and cleans ups everything. func (c *Client) Close() error { return c.client.Close()