fixed #22
This commit is contained in:
parent
4741db48cd
commit
2b2c1c7314
|
@ -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()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue