mirror of
https://github.com/logos-messaging/js-waku.git
synced 2026-01-07 00:03:07 +00:00
feat: enable external library to extend MessageV0 and access proto
This commit is contained in:
parent
7714812cc9
commit
6ec0628223
@ -10,7 +10,7 @@ const OneMillion = BigInt(1_000_000);
|
|||||||
export const Version = 0;
|
export const Version = 0;
|
||||||
|
|
||||||
export class MessageV0 implements Message {
|
export class MessageV0 implements Message {
|
||||||
constructor(private proto: proto.WakuMessage) {}
|
constructor(protected proto: proto.WakuMessage) {}
|
||||||
|
|
||||||
get _rawPayload(): Uint8Array | undefined {
|
get _rawPayload(): Uint8Array | undefined {
|
||||||
if (this.proto.payload) {
|
if (this.proto.payload) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user