From 2b2c1c731438fff6fda1c2a741866b5dede1750a Mon Sep 17 00:00:00 2001 From: alessio Date: Sun, 16 Oct 2016 11:36:22 +0200 Subject: [PATCH] fixed #22 --- server/main.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/main.go b/server/main.go index eab28b6..63c94a6 100644 --- a/server/main.go +++ b/server/main.go @@ -79,6 +79,7 @@ func (s *Server) Start() { }) //websocket + //e.GET("/ws", standard.WrapHandler(s.projects())) e.GET("/ws", standard.WrapHandler(s.projects())) go e.Run(standard.New(":5000")) Open("http://localhost:5000") @@ -98,8 +99,6 @@ func (s *Server) projects() websocket.Handler { msg() for { select { - default: - continue case <-s.Sync: msg() }