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

Method Stop

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

Source from the content-addressed store, hash-verified

211}
212
213func (self *WsServer) Stop() {
214 if self.server != nil {
215 self.server.Shutdown(context.Background())
216 log.Infof("Close websocket ")
217 }
218}
219func (self *WsServer) Restart() {
220 go func() {
221 time.Sleep(time.Second)

Callers 1

RestartMethod · 0.95

Calls 1

InfofFunction · 0.92

Tested by

no test coverage detected