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

Function sendReloadNotification

middleware/websocket/file_watcher.go:113–120  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

111}
112
113func sendReloadNotification(path string) {
114 msg, _ := json.Marshal(fiber.Map{
115 "type": "file-changed-externally",
116 "timestamp": time.Now().Unix(),
117 })
118
119 utils.SendToAll(path, websocket.TextMessage, msg)
120}

Callers 1

onFileChangedFunction · 0.85

Calls 1

SendToAllFunction · 0.92

Tested by

no test coverage detected