Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
public constructor(client: any) {
this._eventemitter = new EventEmitter();
this.coder = new Coder();
this.client = client;
// Give subscribers time to subscribe
setTimeout(() => {
this._isConnected = true;
this.emit('connected');
});
}