Erik Little
Erik Little
how are you trying to connect?
https://github.com/nuclearace/Socket.IO-Client-Swift/issues/53
Possibly not a duplicate.
@longbowww That socket object is scoped to that function, once it leaves it will be released. You need to make the socket a property of an object.
Your scoping is wrong. `scalaSocket` is getting released inside the promise closure.
Are you sure that the socket is connected when you're trying to emit? Also, you're writing some Objective-C looking Swift code ``` swift override public func request(var dic: [String: String])...
From your log it looks like the connection is failing to be established
What's it crashing with?
Does this work in the JS client?
Is the socket a property or a local variable? If it's a local variable you're doing it wrong, since it'll be released once it goes out of scope.