-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sds): add message channel with buffers and send/receive logic #2261
base: master
Are you sure you want to change the base?
Conversation
1752c2c
to
e78c0a8
Compare
size-limit report 📦
|
ba4aa1e
to
935e2d1
Compare
This commit creates the class for an SDS message channel, including buffers for outgoing and incoming messages. Adds logic for sending messages, receiving messages, delivering messages, and reviewing acknowledgement status of messages. Also adds byte serialization for bloom filters.
935e2d1
to
5f6ca97
Compare
} | ||
|
||
// TODO: this should be determined based on the bloom filter parameters and number of hashes | ||
private getAcknowledgementCount(): number { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: private
should be after public
|
||
const DEFAULT_CAUSAL_HISTORY_SIZE = 2; | ||
|
||
export class MessageChannel { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this class intended to be used by consumers? if so, can you generate js doc
comments for public
methods?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's likely there will be a ParticipantState
class that holds one or more of these, but either way I will add some docs to the public methods
Problem / Description
We need to implement the library for SDS in browser based on the specification.
Solution
This commit implements and adds unit tests for everything in the specification up to and including
Review ACK Status
: https://rfc.vac.dev/vac/raw/sds/#review-ack-statusNotes
Checklist