doc: add and improve comments
This commit is contained in:
parent
6187122b81
commit
f19ab81dc8
11 changed files with 31 additions and 8 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue