mirror of
https://github.com/yume-chan/ya-webadb.git
synced 2025-10-03 09:49:24 +02:00
feat: make consumable writable streams also accept raw values
This commit is contained in:
parent
d60ac95f47
commit
d06b5f2ed6
31 changed files with 387 additions and 346 deletions
|
@ -8,8 +8,8 @@ import type {
|
|||
AdbServerConnector,
|
||||
} from "@yume-chan/adb";
|
||||
import {
|
||||
MaybeConsumable,
|
||||
PushReadableStream,
|
||||
UnwrapConsumableStream,
|
||||
WrapWritableStream,
|
||||
WritableStream,
|
||||
} from "@yume-chan/stream-extra";
|
||||
|
@ -101,7 +101,7 @@ export class AdbServerNodeTcpConnector implements AdbServerConnector {
|
|||
readable: connection.readable,
|
||||
writable: new WrapWritableStream(
|
||||
connection.writable,
|
||||
).bePipedThroughFrom(new UnwrapConsumableStream()),
|
||||
).bePipedThroughFrom(new MaybeConsumable.UnwrapStream()),
|
||||
get closed() {
|
||||
return connection.closed;
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue