()
| 217 | } |
| 218 | } |
| 219 | func (self *WsServer) Restart() { |
| 220 | go func() { |
| 221 | time.Sleep(time.Second) |
| 222 | self.Stop() |
| 223 | time.Sleep(time.Second) |
| 224 | go self.Start() |
| 225 | }() |
| 226 | } |
| 227 | |
| 228 | //check sessions timeout,if expire close the session |
| 229 | func (self *WsServer) checkSessionsTimeout(done chan bool) { |
no test coverage detected