Adds support for encrypted media uploads on NIP-17 DMs
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user