Skip to content

Commit

Permalink
update centrifuge-go to 0.5.2, support NamedRPC
Browse files Browse the repository at this point in the history
  • Loading branch information
FZambia committed Jul 15, 2020
1 parent b19a14a commit 5b1fc27
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

[[constraint]]
name = "github.com/centrifugal/centrifuge-go"
version = "0.5.0"
version = "0.5.2"

[prune]
go-tests = true
Expand Down
5 changes: 5 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 5b1fc27

Please sign in to comment.