Update server.ts with improved error handling and logging

This commit is contained in:
complex 2025-04-09 15:28:43 +02:00
parent cb320765bb
commit 9454a8a1b2

@ -847,7 +847,7 @@ ${responseBody}`;
pubkey: this.config.pubkey,
tags: [
['e', requestId],
['p', senderPubkey], // Add 'p' tag with the client's public key
['r', 'wss://relay.degmods.com'],
['key', encryptedKey], // Add encrypted key tag for decryption
['expiration', (Math.floor(Date.now() / 1000) + 3600).toString()]
]