Open Tdreamy opened 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()
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()