15 lines
226 B
Go
15 lines
226 B
Go
package sway
|
|
|
|
func (c *Client) SendTick(payload string) error {
|
|
result, err := sendMessage[commandResult](c, 10, payload)
|
|
if err != nil {
|
|
return err
|
|
}
|
|
|
|
if result.HasError() {
|
|
return result.GetError()
|
|
}
|
|
|
|
return nil
|
|
}
|