We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b629b13 commit b122859Copy full SHA for b122859
client/client.go
@@ -21,6 +21,12 @@ func (c *Client) Close() error {
21
return c.conn.Close()
22
}
23
24
+func (c *Client) PingChrono() error {
25
+ if response, err := c.conn.Execute("PING"); err != nil || response != "OK" {
26
+ return fmt.Errorf("ping failed: %v", err)
27
+ }
28
+ return nil
29
+}
30
func (c *Client) CreateStream(chrono string, stream string) error {
31
if response, err := c.conn.Execute("CREATE STREAM " + stream); err != nil || response != "OK" {
32
return fmt.Errorf("create failed: %v", err)
0 commit comments