Enable relay pings

This should re-establish relay connections when PWAs are being woken up
after background sleep
This commit is contained in:
2026-04-25 11:08:55 +01:00
parent 2943125dbd
commit 3e831a7686

View File

@@ -2,7 +2,7 @@ import Service from '@ember/service';
import { RelayPool } from 'applesauce-relay';
export default class NostrRelayService extends Service {
pool = new RelayPool();
pool = new RelayPool({ enablePing: true });
async publish(relays, event) {
if (!relays || relays.length === 0) {