DevYukine / Kurasuta

A Custom discord.js Sharding Library inspired by eris-sharder.
MIT License
160 stars 23 forks source link

this.socket.off is not a function #20

Closed HitoIRL closed 5 years ago

HitoIRL commented 5 years ago

Im getting error 'TypeError: this.socket.off is not a function' idk in which files but thoce are my files:


const { Token } = require('./Config/AspektConfig');

module.exports = class extends BaseCluster {
    launch() {
        this.client.login(Token)
    }
};```
and
```// Packages
const { ShardingManager } = require('kurasuta');
const { join } = require('path');

// Config
const { Token } = require('./Config/AspektConfig');

const sharder = new ShardingManager(join(__dirname, 'AspektStruct'), {
    token: Token,
    clusterCount: 1,
    guildsPerShard: 100,
    respawn: true
});

sharder.spawn();```
DevYukine commented 5 years ago

This sounds like an issue with the generated socket for the ipc, can you try using tcp (add a port for ShardingManagerOption#ipcSocket to activate that) and tell me if that fixes it?

DevYukine commented 5 years ago

This should be fixed with the latest commit, i changed that it defaults to tcp instead using sockets now to make it more user friendly, let me know if you have any issues related to that.