summaryrefslogtreecommitdiff
path: root/ws/mod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ws/mod.ts')
-rw-r--r--ws/mod.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/ws/mod.ts b/ws/mod.ts
index ce2b90e3a..316e19abd 100644
--- a/ws/mod.ts
+++ b/ws/mod.ts
@@ -488,7 +488,7 @@ export async function connectWebSocket(
throw new Error("currently https/wss is not supported");
}
}
- const conn = await Deno.dial("tcp", `${hostname}:${port}`);
+ const conn = await Deno.dial({ hostname, port: Number(port) });
const bufWriter = new BufWriter(conn);
const bufReader = new BufReader(conn);
try {