Skip to content

Commit

Permalink
Add publish function to serve package
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathonmcmurray committed Jun 18, 2018
1 parent c4034d6 commit 1f6c6fa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions serve/serve.q
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

Expand Down

0 comments on commit 1f6c6fa

Please sign in to comment.