MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / Read

Method Read

agent/utils/websocket/client.go:26–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

24}
25
26func (c *Client) Read() {
27 defer func() {
28 c.closed.Store(true)
29 close(c.Msg)
30 }()
31 for {
32 _, message, err := c.Socket.ReadMessage()
33 if err != nil {
34 return
35 }
36 ProcessData(c, message)
37 }
38}
39
40func (c *Client) Write() {
41 defer c.Socket.Close()

Callers 15

GetEnvValueByKeyFunction · 0.45
GetRemoteTimeFunction · 0.45
upSmallMethod · 0.45
upBigMethod · 0.45
UploadMethod · 0.45
randomShareCodeFunction · 0.45
randomSaltFunction · 0.45
GetPreviewContentMethod · 0.45
UpdateMethod · 0.45
CreateRootCertMethod · 0.45
handleParamsFunction · 0.45

Implementers 1

terminalAIClientagent/utils/terminal/ai/client.go

Calls 1

ProcessDataFunction · 0.85

Tested by

no test coverage detected