connection.reject = (err) => {
        // This is necessary for some scenarios in order to rid of UnhandledPromiseRejectionWarning errors in NodeJS and similar errors/warnings in browsers
        connection.promise.catch(() => {})
        clearTimeout(responseTimer)
        this.connections.delete(id)