feat: ws获取网络连接进程

This commit is contained in:
TsMask
2024-01-23 18:43:26 +08:00
parent 89499c9d28
commit ec9a30d78c
3 changed files with 79 additions and 0 deletions

View File

@@ -23,6 +23,12 @@ func (s *WSReceiveImpl) Receive(client *model.WSClient, reqMsg model.WSRequest)
return err
}
client.MsgChan <- res
case "net":
res, err := processor.GetNetConnections(reqMsg.Data)
if err != nil {
return err
}
client.MsgChan <- res
default:
return fmt.Errorf("message type not supported")
}