From 34b99fec8edcff7d3b667f273afea69df15e4d5e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Sat, 18 Jan 2020 18:35:12 +0100 Subject: rename dial to connect and dialTLS to connectTLS (#3710) --- std/ws/mod.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'std/ws') diff --git a/std/ws/mod.ts b/std/ws/mod.ts index c256f58ad..96ba4df62 100644 --- a/std/ws/mod.ts +++ b/std/ws/mod.ts @@ -484,10 +484,10 @@ export async function connectWebSocket( let conn: Conn; if (url.protocol === "http:" || url.protocol === "ws:") { const port = parseInt(url.port || "80"); - conn = await Deno.dial({ hostname, port }); + conn = await Deno.connect({ hostname, port }); } else if (url.protocol === "https:" || url.protocol === "wss:") { const port = parseInt(url.port || "443"); - conn = await Deno.dialTLS({ hostname, port }); + conn = await Deno.connectTLS({ hostname, port }); } else { throw new Error("ws: unsupported protocol: " + url.protocol); } -- cgit v1.2.3