16 lines
274 B
Go
16 lines
274 B
Go
package sway
|
|
|
|
// SendTick sends a tick with the given payload
|
|
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
|
|
}
|