Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this._abortOpen = () => {
const error = new OperationCanceled('client opening aborted');
cleanup();
this.socket.abortRequests(error);
reject(error);
};