tweaks
This commit is contained in:
parent
922ed4b575
commit
59e068c853
@ -257,8 +257,7 @@ public final class SocketEngine: NSObject, WebSocketDelegate, SocketLogClient {
|
||||
return
|
||||
} else if !self!.closed && self!.polling {
|
||||
self?.doPoll()
|
||||
}
|
||||
}.resume()
|
||||
}}.resume()
|
||||
}
|
||||
|
||||
private func flushProbeWait() {
|
||||
|
||||
@ -172,22 +172,14 @@ final class SocketPacket: Printable {
|
||||
options: NSJSONWritingOptions(0), error: &err)
|
||||
let jsonString = NSString(data: jsonSend!, encoding: NSUTF8StringEncoding)
|
||||
|
||||
message += jsonString! as String
|
||||
message += ","
|
||||
continue
|
||||
message += jsonString! as String + ","
|
||||
} else if arg is String {
|
||||
message += "\"\(arg)\","
|
||||
} else if arg is NSNull {
|
||||
message += "null,"
|
||||
continue
|
||||
} else {
|
||||
message += "\(arg),"
|
||||
}
|
||||
|
||||
if arg is String {
|
||||
message += "\"\(arg)\""
|
||||
message += ","
|
||||
continue
|
||||
}
|
||||
|
||||
message += "\(arg)"
|
||||
message += ","
|
||||
}
|
||||
|
||||
if message != "" {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user