braid-text 0.2.96 → 0.2.97

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -697,7 +697,8 @@ function create_braid_text() {
697
697
  var params = {
698
698
  signal: options.signal,
699
699
  subscribe: !!options.subscribe,
700
- heartbeats: 120,
700
+ heartbeats: options.heartbeats ?? 120,
701
+ heartbeat_cb: options.heartbeat_cb
701
702
  }
702
703
  if (!options.dont_retry) {
703
704
  params.retry = (res) => res.status !== 404
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "braid-text",
3
- "version": "0.2.96",
3
+ "version": "0.2.97",
4
4
  "description": "Library for collaborative text over http using braid.",
5
5
  "author": "Braid Working Group",
6
6
  "repository": "braid-org/braid-text",