UNPKG

@waku/core

Version:

TypeScript implementation of the Waku v2 protocol

13 lines 332 B
const EmptyMessage = { payload: new Uint8Array(), contentTopic: "", version: undefined, timestamp: undefined, meta: undefined, rateLimitProof: undefined, ephemeral: undefined }; export function toProtoMessage(wire) { return { ...EmptyMessage, ...wire }; } //# sourceMappingURL=to_proto_message.js.map