mirror of
git://jb55.com/damus
synced 2024-09-19 11:43:44 +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:
parent
d5b839f11a
commit
927a4deedc
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user