We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dca2180 commit e415ce5Copy full SHA for e415ce5
1 file changed
js/README.md
@@ -26,6 +26,10 @@ const pub = publish({
26
while (!pub.apiKey) await new Promise((r) => setTimeout(r, 50));
27
console.log('URL:', `https://hub.example.com${pub.baseUrl}`);
28
console.log('KEY:', pub.apiKey);
29
+
30
+// Keep the publisher alive until you call pub.stop() (mirror of
31
+// Python's await pub.run_forever()).
32
+await pub.runForever();
33
```
34
35
## Connect — chat from a browser/Node client
0 commit comments