From e69e7a67b6f64c924c0179c523f245eca6e91970 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 6 Feb 2023 03:50:00 -0500 Subject: [PATCH] *Update dist --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index b6028a6..4614dfb 100644 --- a/dist/index.js +++ b/dist/index.js @@ -54,7 +54,7 @@ export class Socket extends Client { this.id = id; } on(event, fn, context) { - const [update, promise] = this.connectModule("listenSocketEvent", { id: this.id, event: event }, (data) => { + const [update, promise] = this.connectModule("socketListenEvent", { id: this.id, event: event }, (data) => { this.emit(event, data); }); this.trackEvent(event, update); @@ -72,12 +72,12 @@ export class Socket extends Client { return super.off(event, fn, context, once); } write(message) { - this.callModule("write", { id: this.id, message }); + this.callModule("socketWrite", { id: this.id, message }); } end() { this.callModule("socketExists", { id: this.id }).then(([exists]) => { if (exists) { - this.callModule("close", { id: this.id }); + this.callModule("socketClose", { id: this.id }); } }); }