repos / pico

pico services - prose.sh, pastes.sh, imgs.sh, feeds.sh, pgs.sh
git clone https://github.com/picosh/pico.git

commit
215a842
parent
ab36563
author
Eric Bower
date
2024-10-09 12:13:36 +0000 UTC
docs(pubsub): copy
2 files changed,  +7, -6
M pubsub/html/marketing.page.tmpl
+5, -4
 1@@ -1,9 +1,9 @@
 2 {{template "base" .}}
 3 
 4-{{define "title"}}pubsub using ssh{{end}}
 5+{{define "title"}}pipe: pubsub using ssh{{end}}
 6 
 7 {{define "meta"}}
 8-<meta name="description" content="pubsub using ssh" />
 9+<meta name="description" content="pico's managed pubsub service using ssh" />
10 
11 <meta property="og:type" content="website">
12 <meta property="og:site_name" content="{{.Site.Domain}}">
13@@ -28,10 +28,10 @@
14   <div>
15     <p>
16       The simplest authenticated pubsub system.  Send messages through
17-      user-defined topics.  By default, topics are private to the authenticated
18+      user-defined topics (aka channels).  By default, topics are private to the authenticated
19       ssh user.  The default pubsub model is multicast with bidirectional
20       blocking, meaning a publisher (<code>pub</code>) will send its message to all
21-      subscribers (<code>sub</code>) for a topic (channels).  There can be many publishers
22+      subscribers (<code>sub</code>) for a topic.  There can be many publishers
23       and many subscribers on a topic. Further, both <code>pub</code> and
24       <code>sub</code> will wait for at least one event to be sent or received on the topic.
25     </p>
26@@ -47,6 +47,7 @@
27       <li>Multicast (many pubs to many subs)</li>
28       <li>Bidirectional (e.g. chat)</li>
29       <li>Configurable blocking characteristics for pubs</li>
30+      <li>Configurable timeout for <code>pub</code></li>
31       <li>Paradigms for connecting to a topic:
32         <ol>
33           <li>Read (<code>sub</code>)</li>
M pubsub/public/anim.js
+2, -2
 1@@ -16,9 +16,9 @@ function init() {
 2     maxY: canvas.height + 20,
 3     // balls
 4     entities: [
 5-      { x: 20, y: 0, mod: 1 },
 6+      { x: 18, y: 0, mod: 1 },
 7       // { x: 25, y: canvas.height / 2, mod: 1 },
 8-      { x: 35, y: canvas.height, mod: -1 },
 9+      { x: 32, y: canvas.height, mod: -1 },
10     ],
11   };
12