cloudstorm
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -40,3 +40,3 @@ /// <reference types="node" /> | ||
constructor(address: string, options: import("../Types").IClientWSOptions); | ||
get status(): 1 | 2 | 3 | 4; | ||
get status(): 2 | 3 | 4 | 1; | ||
connect(): Promise<void>; | ||
@@ -43,0 +43,0 @@ close(code: number, reason?: string): Promise<void>; |
@@ -50,3 +50,3 @@ "use strict"; | ||
const url = new URL(this.address); | ||
const useHTTPS = url.protocol === "https:" || url.port === "443"; | ||
const useHTTPS = (url.protocol === "https:" || url.protocol === "wss:") || url.port === "443"; | ||
const port = url.port || (useHTTPS ? "443" : "80"); | ||
@@ -53,0 +53,0 @@ const req = (useHTTPS ? https_1.default : http_1.default).request({ |
{ | ||
"name": "cloudstorm", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Minimalistic Discord Gateway library", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
129216