"use strict";(self.webpackChunkwaku_guide=self.webpackChunkwaku_guide||[]).push([[175],{3905:(e,n,t)=>{t.d(n,{Zo:()=>u,kt:()=>m});vari=t(67294);functionr(e,n,t){returnnine?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}functiono(e,n){vart=Object.keys(e);if(Object.getOwnPropertySymbols){vari=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){returnObject.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,i)}returnt}functiona(e){for(varn=1;n<arguments.length;n++){vart=null!=arguments[n]?arguments[n]:{};n%2?o(Object(t),!0).forEach((function(n){r(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):o(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}returne}functions(e,n){if(null==e)return{};vart,i,r=function(e,n){if(null==e)return{};vart,i,r={},o=Object.keys(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||(r[t]=e[t]);returnr}(e,n);if(Object.getOwnPropertySymbols){varo=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)t=o[i],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}returnr}varc=i.createContext({}),p=function(e){varn=i.useContext(c),t=n;returne&&(t="function"==typeofe?e(n):a(a({},n),e)),t},u=function(e){varn=p(e.components);returni.createElement(c.Provider,{value:n},e.children)},l="mdxType",d={inlineCode:"code",wrapper:function(e){varn=e.children;returni.createElement(i.Fragment,{},n)}},g=i.forwardRef((function(e,n){vart=e.components,r=e.mdxType,o=e.originalType,c=e.parentName,u=s(e,["components","mdxType","originalType","parentName"]),l=p(t),g=r,m=l["".concat(c,".").concat(g)]||l[g]||d[g]||o;returnt?i.createElement(m,a(a({ref:n},u),{},{components:t})):i.createElement(m,a({ref:n},u))}));functionm(e,n){vart=arguments,r=n&&n.mdxType;if("string"==typeofe||r){varo=t.length,a=newArray(o);a[0]=g;vars={};for(varcinn)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s[l]="string"==typeofe?e:r,a[1]=s;for(varp=2;p<o;p++)a[p]=t[p];returni.createElement.apply(null,a)}returni.createElement.apply(null,t)}g.displayName="MDXCreateElement"},62093:(e,n,t)=>{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>f,frontMatter:()=>c,metadata:()=>u,toc:()=>d});vari=t(87462),r=(t(67294),t(3905));consto={toc:[]},a="wrapper";functions(e){let{components:n,...t}=e;return(0,r.kt)(a,(0,i.Z)({},o,t,{components:n,mdxType:"MDXLayout"}),(0,r.kt)("mermaid",{value:"graph TD\n A[Start Monitoring Filter Subscriptions] --\x3e B{Check Peer Connection}\n B -- Connected --\x3e C[Send Ping]\n C --\x3e D{Ping Success?}\n D -- Yes --\x3e B\n D -- No --\x3e E[Handle Error/Reinitiate Subscription]\n B -- Disconnected --\x3e F[Check Intentional Disconnection/Unsubscription]\n F -- Yes --\x3e G[Stop Monitoring]\n F -- No --\x3e B\n E --\x3e B"}))}s.isMDXComponent=!0;constc={title:"Manage Your Filter Subscriptions",hide_table_of_contents:!0},p=void0,u={unversionedId:"guides/js-waku/manage-filter",id:"guides/js-waku/manage-filter",title:"Manage Your Filter Subscriptions",description:"This guide provides detailed steps to manage Filter subscriptions and handle node disconnections in your application. Have a look at the Send and Receive Messages Using Light Push and Filter guide for using the Light Push and Filter protocols.",source:"@site/docs/guides/js-waku/manage-filter.md",sourceDirName:"guides/js-waku",slug:"/guides/js-waku/manage-filter",permalink:"/guides/js-waku/manage-filter",draft:!1,editUrl:"https://github.com/waku-org/docs.waku.org/tree/develop/docs/guides/js-waku/manage-filter.md",tags:[],version:"current",lastUpdatedAt:1704966176,formattedLastUpdatedAt:"11 Jan 2024",frontMatter:{title:"Manage Your Filter Subscriptions",hide_table_of_contents:!0},sidebar:"guides",previous:{title:"Debug Your Waku DApp and WebSocket",permalink:"/guides/js-waku/debug-waku-dapp"},next:{title:"Frequently Asked Questions",permalink:"/guides/js-waku/faq"}},l={},d=[{value:"Overview",id:"overview",leve