Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/range_reconcile/mod.ts>RangeMessenger#respond

Efficiently sync sets with range-based set reconciliation
Go to Latest
method RangeMessenger.prototype.respond
Re-export
import { RangeMessenger } from "https://deno.land/x/range_reconcile@0.1.2/mod.ts";

Formulates and returns the appropriate response given a message from another peer. May insert values into the RangeMessenger's tree.

This method must be called with the messages from another peer, in the order they came.

Parameters

message: EncodedMessageType

Returns

Array<EncodedMessageType>