doc: add and improve comments

This commit is contained in:
Sebastian Mark 2024-10-30 11:03:18 +01:00
parent 6187122b81
commit f19ab81dc8
11 changed files with 31 additions and 8 deletions

View file

@ -10,6 +10,7 @@ import (
type Client ChronoTomato.GoTomatoClient // New websocket client
// Connects to websocket
func Connect(url string) Client {
log.Info("Connected 󰖟 ", "host", url)
@ -21,6 +22,7 @@ func Connect(url string) Client {
return Client{Conn: conn}
}
// Disconnects from websocket
func (c Client) Disconnect() {
select {
case <-Done: