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.
2 parents 4fc7838 + 7ddfa7c commit fa3a115Copy full SHA for fa3a115
1 file changed
src/Base.js
@@ -95,7 +95,7 @@ class Base extends EventEmitter {
95
* @type {("DISCONNECTED"|"CONNECTED"|"CONNECTING"|"DISCONNECTING")}
96
*/
97
get state() {
98
- if (!this.connection || typeof this.connection.readyStaet !== "number") return "DISCONNECTED";
+ if (!this.connection || typeof this.connection.readyState !== "number") return "DISCONNECTED";
99
switch(this.connection.readyState) {
100
case 0:
101
return "DISCONNECTED";
@@ -131,4 +131,4 @@ class Base extends EventEmitter {
131
* @example db.on("debug", console.log);
132
133
134
-module.exports = Base;
+module.exports = Base;
0 commit comments