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() }