diff --git a/serve/serve.q b/serve/serve.q index 3a99623..e02c7e8 100644 --- a/serve/serve.q +++ b/serve/serve.q @@ -28,6 +28,7 @@ w:(); .z.ws:{x;} //do nothing with WebSocket messages refresh:{neg[w]@\:"";} //tell clients to refresh (via WebSockets) +publish:{.serve.body:x;refresh[]} //publish a page, overwriting existing \d .