mirror of https://github.com/osnr/TabFS.git
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
|
||||
guard let resp = resp else {
|
||||
// FIXME err
|
||||
os_log(.default, "resp error: %{public}@", err!.debugDescription as CVarArg)
|
||||
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(resp)
|
||||
read()
|
||||
}
|
||||
}
|
||||
read()
|
||||
}
|
||||
|
||||
// split new thread
|
||||
|
|
Loading…
Reference in New Issue