MCPcopy Index your code
hub / github.com/dearcode/candy / OnRecv

Method OnRecv

client/candy.go:23–23  ·  view source on GitHub ↗

OnRecv 这函数理论上是多线程调用,客户端需要注意下

(event int32, operate int32, id int64, group int64, from int64, to int64, body string)

Source from the content-addressed store, hash-verified

21type MessageHandler interface {
22 // OnRecv 这函数理论上是多线程调用,客户端需要注意下
23 OnRecv(event int32, operate int32, id int64, group int64, from int64, to int64, body string)
24
25 // OnError 连接被服务器断开,或其它错误
26 OnError(msg string)

Callers 1

loopRecvMessageMethod · 0.65

Implementers 2

cmdClientcandy.go
cmdClientclient/candy_test.go

Calls

no outgoing calls

Tested by

no test coverage detected