socketio / socket.io-client-swift

Other
5.22k stars 842 forks source link

in swift , on(_:callback:) EXC_BAD_INSTRUCTION #1166

Open Tdreamy opened 5 years ago

Tdreamy commented 5 years ago

manager = SocketManager(socketURL: url, config: [.log(true), .cookies([cookie])]) self.manager!.defaultSocket.on(clientEvent: .connect) { [weak self](data, ack) in self?.connectSig.accept(true) } client!.on(clientEvent: SocketClientEvent.error) { (data, ack) in DLog(data) } client!.on("responseTick") { (data, ack) in DLog(data) } client!.connect()