docs.waku.org/assets/js/e4079132.353ca982.js

1 line
6.7 KiB
JavaScript
Raw Permalink Normal View History

2025-10-03 11:14:33 +00:00
"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[6290],{18446:(e,t,i)=>{i.r(t),i.d(t,{assets:()=>d,contentTitle:()=>c,default:()=>p,frontMatter:()=>o,metadata:()=>r,toc:()=>l});const r=JSON.parse('{"id":"build/javascript/faq","title":"JavaScript SDK FAQ","description":"You can add the JavaScript SDK to your project using NPM, Yarn, or a CDN. Check out the installation guide to get started.","source":"@site/docs/build/javascript/faq.md","sourceDirName":"build/javascript","slug":"/build/javascript/faq","permalink":"/build/javascript/faq","draft":false,"unlisted":false,"editUrl":"https://github.com/waku-org/docs.waku.org/tree/develop/docs/build/javascript/faq.md","tags":[],"version":"current","lastUpdatedAt":null,"frontMatter":{"title":"JavaScript SDK FAQ","hide_table_of_contents":true,"sidebar_label":"Frequently Asked Questions","displayed_sidebar":"build"},"sidebar":"build","previous":{"title":"Manage Your Filter Subscriptions","permalink":"/build/javascript/manage-filter"}}');var a=i(74848),n=i(28453),s=i(39018);const o={title:"JavaScript SDK FAQ",hide_table_of_contents:!0,sidebar_label:"Frequently Asked Questions",displayed_sidebar:"build"},c=void 0,d={},l=[];function u(e){const t={p:"p",...(0,n.R)(),...e.components};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(s.AccordionItem,{title:"How do I install the @waku/sdk package in my project?",children:(0,a.jsxs)(t.p,{children:["You can add the JavaScript SDK to your project using NPM, Yarn, or a CDN. Check out the ",(0,a.jsx)("a",{href:"/build/javascript/#installation",children:"installation guide"})," to get started."]})}),"\n",(0,a.jsx)(s.AccordionItem,{title:"Why should I use Protocol Buffers for my application's message structure when using Waku?",children:(0,a.jsxs)(t.p,{children:["Protocol Buffers ensure consistent formatting, interoperability, and backward compatibility for your application's messages, with a smaller payload size than JSON. Check out the ",(0,a.jsx)("a",{href:"/build/javascript/#message-structure",children:"installation guide"})," and ",(0,a.jsx)("a",{href:"https://protobuf.dev/overview/",children:"Protobuf documentation"})," to learn more."]})}),"\n",(0,a.jsx)(s.AccordionItem,{title:"What are the steps to retrieve historical messages on Waku?",children:(0,a.jsxs)(t.p,{children:["Check out the ",(0,a.jsx)("a",{href:"/build/javascript/store-retrieve-messages",children:"Retrieve Messages Using Store Protocol"})," guide to learn how to retrieve and filter historical messages using the ",(0,a.jsx)("a",{href:"/learn/concepts/protocols#store",children:"Store protocol"}),"."]})}),"\n",(0,a.jsx)(s.AccordionItem,{title:"How can I prevent Store peers from storing my messages?",children:(0,a.jsxs)(t.p,{children:["When ",(0,a.jsx)("a",{href:"/build/javascript/light-send-receive#choose-a-content-topic",children:"creating your message encoder"}),", you can configure the ",(0,a.jsx)("strong",{children:"ephemeral"})," option to prevent Store peers from keeping your messages on the Waku Network."]})}),"\n",(0,a.jsx)(s.AccordionItem,{title:"How can I encrypt, decrypt, and sign messages in my Waku application?",children:(0,a.jsxs)(t.p,{children:["You can encrypt and decrypt your messages using symmetric, ECIES, and noise encryption methods. Check out the ",(0,a.jsx)("a",{href:"/build/javascript/message-encryption",children:"Encrypt, Decrypt, and Sign Your Messages"})," guide to get started."]})}),"\n",(0,a.jsx)(s.AccordionItem,{title:"How do I integrate Waku into a React application?",children:(0,a.jsxs)(t.p,{children:["Waku has a specialized SDK designed for building React applications. Check out the ",(0,a.jsx)("a",{href:"/build/javascript/use-waku-react",children:"Build React DApps Using @waku/react"})," guide for instructions on installation and usage."]})}),"\n",(0,a.jsx)(s.AccordionItem,{title:"How can I bootstrap and discover peers in the Waku Network for browser nodes?",children:(0,a.jsxs)(t.p,{children:["The JavaScript SDK has a ",(0,a.jsx)("a",{href:"/build/javascript/configure-discovery#default-bootstrap-method",children