This commit is contained in:
alessio 2016-09-18 15:36:09 +02:00
parent 4515435bca
commit c785adb415
1 changed files with 0 additions and 2 deletions

View File

@ -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 {