@crypticat/core
Advanced tools
Comparing version 0.2.12 to 0.2.13
@@ -33,2 +33,3 @@ /// <reference types="node" /> | ||
getNick(): string | null; | ||
close(): void; | ||
private assertWs; | ||
@@ -35,0 +36,0 @@ private sendEncrypted; |
@@ -200,2 +200,11 @@ "use strict"; | ||
} | ||
close() { | ||
this.assertWs(this.ws); | ||
this.ws.close(); | ||
this.linkState.df = null; | ||
this.linkState.next = null; | ||
this.linkState.prev = null; | ||
this.nick = null; | ||
this.ws = undefined; | ||
} | ||
assertWs(ws) { | ||
@@ -202,0 +211,0 @@ if ((ws === null || ws === void 0 ? void 0 : ws.readyState) !== 1) { |
{ | ||
"name": "@crypticat/core", | ||
"version": "0.2.12", | ||
"version": "0.2.13", | ||
"description": "Crypticat's core client and server implementation", | ||
@@ -5,0 +5,0 @@ "author": "Kognise <felix.mattick@gmail.com>", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41518
514