diff options
author | Yusuke Sakurai <kerokerokerop@gmail.com> | 2020-06-05 04:13:33 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-04 15:13:33 -0400 |
commit | 430beebc46be1dc87a993c2f7442c5c22076f458 (patch) | |
tree | 60b85b392aebfb3b4a1405b62a6fa1b3a1196147 /std/ws/test.ts | |
parent | a04166e9fa87450dfa910afeaf0c1dad988f3988 (diff) |
doc: Improved ws example and README (#5636)
Diffstat (limited to 'std/ws/test.ts')
-rw-r--r-- | std/ws/test.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/std/ws/test.ts b/std/ws/test.ts index a1c396b18..9ef6ff94b 100644 --- a/std/ws/test.ts +++ b/std/ws/test.ts @@ -283,8 +283,8 @@ function dummyConn(r: Reader, w: Writer): Conn { return { rid: -1, closeWrite: (): void => {}, - read: (x): Promise<number | null> => r.read(x), - write: (x): Promise<number> => w.write(x), + read: (x: Uint8Array): Promise<number | null> => r.read(x), + write: (x: Uint8Array): Promise<number> => w.write(x), close: (): void => {}, localAddr: { transport: "tcp", hostname: "0.0.0.0", port: 0 }, remoteAddr: { transport: "tcp", hostname: "0.0.0.0", port: 0 }, |