mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-10 00:07:20 -06:00
listeners working, sunrise/sunset working with string offset
This commit is contained in:
@@ -20,7 +20,6 @@ type ChanMsg struct {
|
||||
|
||||
func ListenWebsocket(conn *websocket.Conn, ctx context.Context, c chan ChanMsg) {
|
||||
for {
|
||||
// log.Default().Println("reading message")
|
||||
bytes, _ := ReadMessage(conn, ctx)
|
||||
base := BaseMessage{}
|
||||
json.Unmarshal(bytes, &base)
|
||||
|
||||
Reference in New Issue
Block a user