MCPcopy Create free account
hub / github.com/MertJSX/folderhost / updateClientsCount

Function updateClientsCount

middleware/websocket/connnection.go:123–132  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

121}
122
123func updateClientsCount(path string) {
124 clientsCount, err := json.Marshal(fiber.Map{
125 "type": "editor-update-usercount",
126 "count": utils.GetClientsCount(path),
127 })
128
129 if err == nil {
130 utils.SendToAll(path, 1, clientsCount)
131 }
132}

Callers 1

HandleWebsocketFunction · 0.85

Calls 2

GetClientsCountFunction · 0.92
SendToAllFunction · 0.92

Tested by

no test coverage detected