sway/send_tick.go

19 lines
270 B
Go

package sway
import (
"context"
)
func (c *Client) SendTick(ctx context.Context, payload string) error {
result, err := sendMessage[commandResult](c, 10, payload)
if err != nil {
return err
}
if result.HasError() {
return result.GetError()
}
return nil
}