style
This commit is contained in:
parent
884b73c777
commit
4014286da2
@ -379,7 +379,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketLogClient
|
||||
/**
|
||||
Joins namespace /
|
||||
*/
|
||||
public func joinNamespace(namespace:String) {
|
||||
public func joinNamespace(namespace: String) {
|
||||
self.nsp = namespace
|
||||
joinNamespace()
|
||||
}
|
||||
@ -452,10 +452,11 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketLogClient
|
||||
tryReconnect()
|
||||
}
|
||||
|
||||
@objc private func tryReconnect() {
|
||||
@objc prgivate func tryReconnect() {
|
||||
guard status != SocketIOClientStatus.Connected else {
|
||||
return
|
||||
}
|
||||
|
||||
if reconnectAttempts != -1 && currentReconnectAttempt + 1 > reconnectAttempts || !reconnects {
|
||||
clearReconnectTimer()
|
||||
didDisconnect("Reconnect Failed")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user