How to use the socketcluster-client.destroy function in socketcluster-client

To help you get started, we’ve selected a few socketcluster-client examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mattkrick / meatier / src / universal / redux-socket-cluster / index.js View on Github external
this.socket.__destructionCountdown = setTimeout(() => {
        this.socket.disconnect();
        this.socket = socketCluster.destroy(options);
      }, this.clusteredOptions.keepAlive)
    }