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