diff options
| -rw-r--r-- | socket.js | 4 | ||||
| -rw-r--r-- | space.js | 2 | 
2 files changed, 3 insertions, 3 deletions
| @@ -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; @@ -124,4 +124,4 @@ function Space(){ // CLASS  } -exports = Space +module.exports = Space | 
