fix
This commit is contained in:
parent
4515435bca
commit
c785adb415
|
@ -2,7 +2,6 @@ package server
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
|
||||||
"github.com/labstack/echo"
|
"github.com/labstack/echo"
|
||||||
"github.com/labstack/echo/engine/standard"
|
"github.com/labstack/echo/engine/standard"
|
||||||
"github.com/labstack/echo/middleware"
|
"github.com/labstack/echo/middleware"
|
||||||
|
@ -48,7 +47,6 @@ func (s *Server) Start() {
|
||||||
func (s *Server) projects() websocket.Handler {
|
func (s *Server) projects() websocket.Handler {
|
||||||
return websocket.Handler(func(ws *websocket.Conn) {
|
return websocket.Handler(func(ws *websocket.Conn) {
|
||||||
msg := func() {
|
msg := func() {
|
||||||
fmt.Println("tick")
|
|
||||||
message, _ := json.Marshal(s.Blueprint.Projects)
|
message, _ := json.Marshal(s.Blueprint.Projects)
|
||||||
err := websocket.Message.Send(ws, string(message))
|
err := websocket.Message.Send(ws, string(message))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue