Adds support for encrypted media uploads on NIP-17 DMs

This commit is contained in:
Vitor Pamplona
2024-12-23 20:30:22 -05:00
parent f839565152
commit 94c74a1e0c
45 changed files with 1556 additions and 332 deletions
@@ -133,6 +133,7 @@ class Relay(
lastConnectTentative = TimeUtils.now()
socket = socketBuilder.build(url, false, RelayListener(onConnected))
socket?.connect()
} catch (e: Exception) {
if (e is CancellationException) throw e
@@ -21,6 +21,8 @@
package com.vitorpamplona.ammolite.sockets
interface WebSocket {
fun connect()
fun cancel()
fun send(msg: String): Boolean