pool-factory.ts (476B)
1 import { RelayPool } from 'applesauce-relay/pool'; 2 // One implementation, distinct SDK instances and relay/AUTH stores. Only owned 3 // adapters call this factory; no SDK/options are exposed through UI capabilities. 4 export function createScopedRelayPool(): RelayPool { 5 if (typeof window === 'undefined') throw new Error('relay_pool_browser_only'); 6 return new RelayPool({ 7 keepAlive: 0, 8 enablePing: false, 9 requestReconnect: 0, 10 subscriptionReconnect: 0 11 }); 12 }