mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-03 22:33:11 +02:00
safari: it works over ws!
This commit is contained in:
parent
4fdcf4be9d
commit
b19f68cc8e
Binary file not shown.
|
@ -71,13 +71,17 @@ class TabFSService: NSObject, TabFSServiceProtocol {
|
||||||
conn.receiveMessage { (resp, context, isComplete, err) in
|
conn.receiveMessage { (resp, context, isComplete, err) in
|
||||||
guard let resp = resp else {
|
guard let resp = resp else {
|
||||||
// FIXME err
|
// FIXME err
|
||||||
|
os_log(.default, "resp error: %{public}@", err!.debugDescription as CVarArg)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
os_log(.default, "resp %{public}@", String(data: resp, encoding: .utf8) as! CVarArg)
|
||||||
self.fsInput.write(withUnsafeBytes(of: UInt32(resp.count)) { Data($0) })
|
self.fsInput.write(withUnsafeBytes(of: UInt32(resp.count)) { Data($0) })
|
||||||
self.fsInput.write(resp)
|
self.fsInput.write(resp)
|
||||||
read()
|
read()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
read()
|
||||||
}
|
}
|
||||||
|
|
||||||
// split new thread
|
// split new thread
|
||||||
|
|
Loading…
Reference in a new issue