feat: ws获取网络连接进程
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user