diff --git a/SwiftIO/SocketIOClient.swift b/SwiftIO/SocketIOClient.swift index fd61ba79..6be12534 100644 --- a/SwiftIO/SocketIOClient.swift +++ b/SwiftIO/SocketIOClient.swift @@ -141,6 +141,7 @@ public class SocketIOClient: NSObject { self.currentReconnectAttempt = 0 self.reconnectTimer?.invalidate() self.reconnectTimer = nil + self.sid = self.engine?.sid self.handleEvent("connect", data: nil, isInternalMessage: false) }