I am not sure if this an intentional change, if not I think the migration guide should be updated.
My opinion: I am not a Swift/Objective-C developer, coming from NodeJS background.. It makes sense to me that you should do connect on the socket, and I don't understand what's the meaning of doing connect on the manager it self.
Hi!
We tried upgrading to socket.io-client-swift to v16 from v15 and it tooks us sometime to understand that, but there was a change in behaviour that wasn't documented here - https://nuclearace.github.io/Socket.IO-Client-Swift/15to16.html
Based on this code - https://github.com/socketio/socket.io-swift-fiddle I tested it with both v15 and v16, by changing this line - https://github.com/socketio/socket.io-swift-fiddle/blob/main/Sources/Fiddle/main.swift#L16 to
manager.connect()
On v15, I managed to get connected event -
On v16, The socket is not being connected -
I am not sure if this an intentional change, if not I think the migration guide should be updated.
My opinion: I am not a Swift/Objective-C developer, coming from NodeJS background.. It makes sense to me that you should do connect on the socket, and I don't understand what's the meaning of doing connect on the manager it self.