diff --git a/pkg/ws/server.go b/pkg/ws/server.go index 16cdc64..9f24f6d 100644 --- a/pkg/ws/server.go +++ b/pkg/ws/server.go @@ -67,6 +67,8 @@ func wsHandler(wsc *websocket.Conn) { } defer closer(wsc) for { - + wb([]byte{byte(5) & 0xFF, byte(0) & 0xFF, byte(0) & 0xFF, byte(0) & 0xFF, byte(0) & 0xFF}) + time.Sleep(time.Duration(1) * time.Second) + ws([]byte("i am a placeholder")) } }