@gang-js/core
Version:
a state sharing algorithm
18 lines (17 loc) • 368 B
JavaScript
/** wraps command data */
export class GangCommandWrapper {
constructor(
/** command data type */
type,
/** command data */
data,
/** sequence number */
sn = undefined,
/** in reply to sequence number */
rsn = undefined) {
this.type = type;
this.data = data;
this.sn = sn;
this.rsn = rsn;
}
}