Skip to content

Commit 5b1fc27

Browse files
committed
update centrifuge-go to 0.5.2, support NamedRPC
1 parent b19a14a commit 5b1fc27

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

Gopkg.lock

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
[[constraint]]
2929
name = "github.com/centrifugal/centrifuge-go"
30-
version = "0.5.0"
30+
version = "0.5.2"
3131

3232
[prune]
3333
go-tests = true

client.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ func (c *Client) RPC(data []byte) ([]byte, error) {
8080
return c.client.RPC(data)
8181
}
8282

83+
// NamedRPC allows to make RPC with method.
84+
func (c *Client) NamedRPC(method string, data []byte) ([]byte, error) {
85+
return c.client.NamedRPC(method, data)
86+
}
87+
8388
// Close closes Client connection and cleans ups everything.
8489
func (c *Client) Close() error {
8590
return c.client.Close()

0 commit comments

Comments
 (0)