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

Function initWs

main.go:403–410  ·  view source on GitHub ↗
(ctx *cli.Context)

Source from the content-addressed store, hash-verified

401}
402
403func initWs(ctx *cli.Context) {
404 if !config.DefConfig.Ws.EnableHttpWs {
405 return
406 }
407 websocket.StartServer()
408
409 log.Infof("Ws init success")
410}
411
412func initNodeInfo(ctx *cli.Context, p2pSvr *p2pserver.P2PServer) {
413 if config.DefConfig.P2PNode.HttpInfoPort == 0 {

Callers 1

startDNAFunction · 0.85

Calls 2

StartServerFunction · 0.92
InfofMethod · 0.80

Tested by

no test coverage detected