mirror of
https://github.com/osnr/TabFS.git
synced 2026-03-14 21:15:44 +01:00
safari: it works over ws!
This commit is contained in:
parent
4fdcf4be9d
commit
b19f68cc8e
2 changed files with 4 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue