MCPcopy Create free account
hub / github.com/daodst/chat / parseMsgClientMeta

Function parseMsgClientMeta

server/datamodel.go:190–206  ·  view source on GitHub ↗
(params string)

Source from the content-addressed store, hash-verified

188)
189
190func parseMsgClientMeta(params string) int {
191 var bits int
192 parts := strings.SplitN(params, " ", 8)
193 for _, p := range parts {
194 switch p {
195 case "info":
196 bits |= constMsgMetaInfo
197 case "sub":
198 bits |= constMsgMetaSub
199 case "data":
200 bits |= constMsgMetaData
201 default:
202 // ignore
203 }
204 }
205 return bits
206}
207
208// MsgSetInfo: C2S in set.what == "info" and sub.init message
209type MsgSetInfo struct {

Callers 3

getMethod · 0.85
setMethod · 0.85
handleSubscriptionMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected