Open naartjie opened 9 years ago
The first screenshot is one stack level lower.
Hmm, when I change the connection line to use the defaults:
var client = SocketIOClient(uri: "http://localhost:3000/socket.io/")
It doesn't happen anymore.
But after a while the client gets disconnected on the server side:
While the client side doesn't seem to know anything about it. Well, there are no pings going backwards and forwards, but when I kill the server, Xcode console shows this:
I should have probably mentioned before, I am running this on the iOS Simulator (both client and server running on the same machine), do I need to tweak anything, or should it work out the box?
@shuoli84 I realise now that this is probably 2 separate issues. Unless it's something obvious I am doing wrong, I can move the second one into new issue.
from the code:
var client = SocketIOClient(uri: "http://localhost:3000/socket.io/", reconnect: true, timeout: 30, transports: ["websocket"])
client.open()
var socket = client.socket("/brand/root")
socket.delegate = self
Seems you not retain any reference on client. Anyway, the lib should not crash. I'll fix it.
I am getting an
EXC_BREAKPOINT
on this lineI am using socket.io
v1.3.4
, and engine.iov1.5.1
, and SocketIOCocoa from master. On the server my code looks like this:And on the client: