Replace Starscream with URLSessionWebSocketTask
Changelog-Fixed: Fix slow reconnection issues
This commit is contained in:
committed by
William Casarin
parent
6ac68b5a73
commit
0e94c48e26
@@ -52,14 +52,12 @@ class Relay: Identifiable {
|
||||
let descriptor: RelayDescriptor
|
||||
let connection: RelayConnection
|
||||
|
||||
var last_pong: UInt32
|
||||
var flags: Int
|
||||
|
||||
init(descriptor: RelayDescriptor, connection: RelayConnection) {
|
||||
self.flags = 0
|
||||
self.descriptor = descriptor
|
||||
self.connection = connection
|
||||
self.last_pong = 0
|
||||
}
|
||||
|
||||
func mark_broken() {
|
||||
|
||||
Reference in New Issue
Block a user