summaryrefslogtreecommitdiff
path: root/js/net.ts
diff options
context:
space:
mode:
authorJonathon Orsi <jonathon.orsi@gmail.com>2019-09-23 14:40:38 -0400
committerRyan Dahl <ry@tinyclouds.org>2019-09-23 15:12:42 -0400
commit045e74bb39d7743b774cfd2b889bc6ce1e1ad245 (patch)
tree93a8429860a40eabaee813e6f983f64aebd8afc7 /js/net.ts
parent4ff04ad96f27b7073e3478630ed249eedc76af2b (diff)
feat: Add Deno.dialTLS()
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
Diffstat (limited to 'js/net.ts')
-rw-r--r--js/net.ts3
1 files changed, 1 insertions, 2 deletions
diff --git a/js/net.ts b/js/net.ts
index 28c8cf8e0..4da6da38e 100644
--- a/js/net.ts
+++ b/js/net.ts
@@ -44,7 +44,7 @@ function shutdown(rid: number, how: ShutdownMode): void {
sendSync(dispatch.OP_SHUTDOWN, { rid, how });
}
-class ConnImpl implements Conn {
+export class ConnImpl implements Conn {
constructor(
readonly rid: number,
readonly remoteAddr: string,
@@ -187,7 +187,6 @@ const dialDefaults = { hostname: "127.0.0.1", transport: "tcp" };
export async function dial(options: DialOptions): Promise<Conn> {
options = Object.assign(dialDefaults, options);
const res = await sendAsync(dispatch.OP_DIAL, options);
- // TODO(bartlomieju): add remoteAddr and localAddr on Rust side
return new ConnImpl(res.rid, res.remoteAddr!, res.localAddr!);
}