We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51955ed commit ed666e9Copy full SHA for ed666e9
1 file changed
mod.ts
@@ -21,11 +21,11 @@ export async function connectPogSocket(uri: string, options: PogSocketOptions =
21
switch (url.protocol) {
22
case "http:":
23
case "ws:":
24
- conn = await Deno.connect({ hostname: url.hostname, port: +(url.port ?? 80) });
+ conn = await Deno.connect({ hostname: url.hostname, port: +(url.port || 80) });
25
break;
26
case "https:":
27
case "wss:":
28
- conn = await Deno.connectTls({ hostname: url.hostname, port: +(url.port ?? 443) })
+ conn = await Deno.connectTls({ hostname: url.hostname, port: +(url.port || 443) })
29
30
default:
31
throw new TypeError(`Unsupported protocol: ${url.protocol}`);
0 commit comments