1
0
mirror of git://jb55.com/damus synced 2024-09-18 19:23:49 +00:00

websocket: turn of compression

otherwise we can't connect to some relays

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin 2022-04-16 15:37:47 -07:00
parent d5b839f11a
commit 927a4deedc

View File

@ -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