From 045e74bb39d7743b774cfd2b889bc6ce1e1ad245 Mon Sep 17 00:00:00 2001 From: Jonathon Orsi Date: Mon, 23 Sep 2019 14:40:38 -0400 Subject: feat: Add Deno.dialTLS() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- js/net.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'js/net.ts') 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 { 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!); } -- cgit v1.2.3