commit 927a4deedcabfb307f71031ad4f7022dd438d44a
parent d5b839f11a3afdc2cc2fe1a3e1e1cdf8c4ed50b0
Author: William Casarin <jb55@jb55.com>
Date: Sat, 16 Apr 2022 15:37:47 -0700
websocket: turn of compression
otherwise we can't connect to some relays
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/damus/Nostr/RelayConnection.swift b/damus/Nostr/RelayConnection.swift
@@ -21,7 +21,7 @@ class RelayConnection: WebSocketDelegate {
init(url: URL, handleEvent: @escaping (NostrConnectionEvent) -> ()) {
var req = URLRequest(url: url)
req.timeoutInterval = 5
- self.socket = WebSocket(request: req)
+ self.socket = WebSocket(request: req, certPinner: nil, compressionHandler: .none, useCustomEngine: false)
self.handleEvent = handleEvent
socket.delegate = self