From 89ae45290d744469fbcbf192ebc468712ab3009d Mon Sep 17 00:00:00 2001 From: Holden Rohrer Date: Wed, 18 Dec 2019 21:09:23 -0500 Subject: fixed socket address and module.exports --- socket.js | 4 ++-- space.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/socket.js b/socket.js index 949dcdd..7a88ff6 100644 --- a/socket.js +++ b/socket.js @@ -27,7 +27,7 @@ class retryws extends EventEmitter{ // a wrapper on ws that retries on failure class Socket extends retryws { constructor(world='') { // Takes the name of the world, which can be an empty string. - let loc = (world == '') ? '' : `/${world}`; + let loc = (world == '') ? '' : `${world}/`; let addr = `wss://www.yourworldoftext.com/${loc}ws/`; super(addr); this.on('message', (msg)=>{ @@ -91,4 +91,4 @@ class Socket extends retryws { } } -exports = Socket; +module.exports = Socket; diff --git a/space.js b/space.js index e567733..63b916e 100644 --- a/space.js +++ b/space.js @@ -124,4 +124,4 @@ function Space(){ // CLASS } -exports = Space +module.exports = Space -- cgit