mirror of
https://github.com/logos-messaging/docs.waku.org.git
synced 2026-01-06 23:03:10 +00:00
1 line
12 KiB
JavaScript
1 line
12 KiB
JavaScript
|
|
"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[16],{4865:(e,n,s)=>{s.d(n,{A:()=>h});var t=s(96540),r=s(34164),o=s(23104),i=s(47751),a=s(92303);const c={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};var d=s(74848);function l({className:e,block:n,selectedValue:s,selectValue:t,tabValues:i}){const a=[],{blockElementScrollPositionUntilNextRender:l}=(0,o.a_)(),u=e=>{const n=e.currentTarget,r=a.indexOf(n),o=i[r].value;o!==s&&(l(n),t(o))},p=e=>{let n=null;switch(e.key){case"Enter":u(e);break;case"ArrowRight":{const s=a.indexOf(e.currentTarget)+1;n=a[s]??a[0];break}case"ArrowLeft":{const s=a.indexOf(e.currentTarget)-1;n=a[s]??a[a.length-1];break}}n?.focus()};return(0,d.jsx)("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,r.A)("tabs",{"tabs--block":n},e),children:i.map(({value:e,label:n,attributes:t})=>(0,d.jsx)("li",{role:"tab",tabIndex:s===e?0:-1,"aria-selected":s===e,ref:e=>{a.push(e)},onKeyDown:p,onClick:u,...t,className:(0,r.A)("tabs__item",c.tabItem,t?.className,{"tabs__item--active":s===e}),children:n??e},e))})}function u({lazy:e,children:n,selectedValue:s}){const o=(Array.isArray(n)?n:[n]).filter(Boolean);if(e){const e=o.find(e=>e.props.value===s);return e?(0,t.cloneElement)(e,{className:(0,r.A)("margin-top--md",e.props.className)}):null}return(0,d.jsx)("div",{className:"margin-top--md",children:o.map((e,n)=>(0,t.cloneElement)(e,{key:n,hidden:e.props.value!==s}))})}function p(e){const n=(0,i.u)(e);return(0,d.jsxs)("div",{className:(0,r.A)("tabs-container",c.tabList),children:[(0,d.jsx)(l,{...n,...e}),(0,d.jsx)(u,{...n,...e})]})}function h(e){const n=(0,a.default)();return(0,d.jsx)(p,{...e,children:(0,i.v)(e.children)},String(n))}},4933:(e,n,s)=>{s.r(n),s.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>h,frontMatter:()=>c,metadata:()=>t,toc:()=>u});const t=JSON.parse('{"id":"guides/js-waku/configure-discovery","title":"Bootstrap Nodes and Discover Peers","description":"This guide provides detailed steps to bootstrap your your node using Static Peers and discover peers in the Waku Network using DNS Discovery.","source":"@site/docs/guides/js-waku/configure-discovery.mdx","sourceDirName":"guides/js-waku","slug":"/guides/js-waku/configure-discovery","permalink":"/guides/js-waku/configure-discovery","draft":false,"unlisted":false,"editUrl":"https://github.com/waku-org/docs.waku.org/tree/develop/docs/guides/js-waku/configure-discovery.mdx","tags":[],"version":"current","lastUpdatedAt":null,"frontMatter":{"title":"Bootstrap Nodes and Discover Peers","hide_table_of_contents":true},"sidebar":"guides","previous":{"title":"Scaffold DApps Using @waku/create-app","permalink":"/guides/js-waku/use-waku-create-app"},"next":{"title":"Run @waku/sdk in a NodeJS Application","permalink":"/guides/js-waku/run-waku-nodejs"}}');var r=s(74848),o=s(28453),i=s(4865),a=s(19365);const c={title:"Bootstrap Nodes and Discover Peers",hide_table_of_contents:!0},d=void 0,l={},u=[{value:"Default bootstrap method",id:"default-bootstrap-method",level:2},{value:"Configure static peers",id:"configure-static-peers",level:2},{value:"Configure DNS discovery",id:"configure-dns-discovery",level:2},{value:"Configure DNS discovery and static peers",id:"configure-dns-discovery-and-static-peers",level:2},{value:"Retrieving connected peers",id:"retrieving-connected-peers",level:2}];function p(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",p:"p",pre:"pre",...(0,o.R)(),...e.components};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(n.p,{children:["This guide provides detailed steps to bootstrap your your node using ",(0,r.jsx)(n.a,{href:"/learn/concepts/static-peers",children:"Static Peers"})," and discover peers in the Waku Network using ",(0,r.jsx)(n.a,{href:"/learn/concepts/dns-discovery",children:"DNS Discovery"}),"."]}),"\n",(0,r.jsx)(n.admonition,{type:"info",children:(0,r.jsx)(n.p,{children:"If you do not set up a bootstrap node or discovery mechanism, your node will not connect to any remote peer."})}),"\n",(0,r.jsx)(n.admonition,{type:"tip",children:(0,r.jsxs)(n.p,{children:["Until ",(0,r.jsx)
|