-
Notifications
You must be signed in to change notification settings - Fork 332
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add node:net module * fix eslint errors due to missing @types/node * add tests that uses nodejs sidecar * remove unnecessary compat flag * try to fix windows build * disable node:net tests on windows * do not throw on setNoDelay
- Loading branch information
Showing
14 changed files
with
2,768 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import type { Buffer } from 'node-internal:internal_buffer'; | ||
|
||
declare namespace sockets { | ||
function connect( | ||
input: string, | ||
options: Record<string, unknown> | ||
): { | ||
opened: Promise<void>; | ||
closed: Promise<void>; | ||
close(): Promise<void>; | ||
readable: { | ||
getReader(options: Record<string, string>): { | ||
close(): Promise<void>; | ||
read(value: unknown): Promise<{ value: Buffer; done: boolean }>; | ||
}; | ||
}; | ||
writable: { | ||
getWriter(): { | ||
close(): Promise<void>; | ||
write(data: string | ArrayBufferView): Promise<void>; | ||
}; | ||
}; | ||
}; | ||
} | ||
export default sockets; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export { | ||
Duplex, | ||
Writable, | ||
WritableOptions, | ||
Readable, | ||
ReadableOptions, | ||
} from 'node:stream'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.