This commit is contained in:
alessio 2016-10-16 11:36:22 +02:00
parent 4741db48cd
commit 2b2c1c7314
1 changed files with 1 additions and 2 deletions

View File

@ -79,6 +79,7 @@ func (s *Server) Start() {
}) })
//websocket //websocket
//e.GET("/ws", standard.WrapHandler(s.projects()))
e.GET("/ws", standard.WrapHandler(s.projects())) e.GET("/ws", standard.WrapHandler(s.projects()))
go e.Run(standard.New(":5000")) go e.Run(standard.New(":5000"))
Open("http://localhost:5000") Open("http://localhost:5000")
@ -98,8 +99,6 @@ func (s *Server) projects() websocket.Handler {
msg() msg()
for { for {
select { select {
default:
continue
case <-s.Sync: case <-s.Sync:
msg() msg()
} }