Skip to content

added reference docs for collab and presence - #32

Merged
pdiffley merged 7 commits into
mainfrom
collab-reference
May 28, 2026
Merged

added reference docs for collab and presence#32
pdiffley merged 7 commits into
mainfrom
collab-reference

Conversation

@pdiffley

Copy link
Copy Markdown
Contributor

No description provided.

Comment thread packages/collab-client/src/index.ts Outdated
Comment thread packages/collab-client/src/index.ts Outdated
Comment thread packages/collab-client/src/index.ts Outdated
Comment thread packages/collab-client/src/index.ts Outdated
}

/**
* Have the client start listening for remote commits. This function should only be called once.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Have the client start listening for remote commits. This function should only be called once.
* Start listening for remote commits.
*
* This function should only be called once.

Comment thread packages/collab-server/src/index.ts Outdated
Comment thread packages/collab-server/src/index.ts Outdated
Comment thread packages/collab-server/src/index.ts Outdated
Comment thread packages/collab-server/src/index.ts Outdated
/**
* @param redisUrl - the url for your Redis cluster
* @param timeout - the maximum time the broadcast manager should listen for changes
* to a document before returning an empty result

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh, does this work? I feel like these should be on the individual properties — @param is for function args, I think

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

definitely does not work. Fixed

Comment thread packages/collab-server/src/index.ts Outdated
Comment thread packages/presence-client/src/config.ts Outdated
Comment on lines +38 to +41
// Todo: The example in this doc rely's on some react context, how to show it otherwise
// It feels useful to show that you use receiveCommitTransaction to merge the editor
// state, but that might just be because I wouldn't know how to do it otherwise.
// See the doc in the Presence client config's receiveIndicators for an alternative approach.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can remove this TODO now yeah?

@pdiffley
pdiffley merged commit 0b79b18 into main May 28, 2026
2 checks passed
@pdiffley
pdiffley deleted the collab-reference branch May 28, 2026 21:02
pdiffley added a commit that referenced this pull request Jun 5, 2026
* added reference docs for collab and presence

* fixed typos

* fixes

* rebuilt reference docs

* resolved issues

* fixed formatting

* regen and format docs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants