MCPcopy Create free account
hub / github.com/DNAProject/DNA / Restart

Method Restart

http/websocket/websocket/server.go:219–226  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

217 }
218}
219func (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
229func (self *WsServer) checkSessionsTimeout(done chan bool) {

Callers 1

ReStartServerFunction · 0.45

Calls 2

StopMethod · 0.95
StartMethod · 0.95

Tested by

no test coverage detected