Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.
This repository was archived by the owner on May 31, 2022. It is now read-only.

How do I disconnect the ssh tunnel ? #188

@ashishtilara

Description

@ashishtilara

I found that behaviour of connect function is different to what is documented in README.md

connect(options, (db) => {
  db.connect(() => {
    db.db('mydb').collection('customers').count((err2, count) => {
      console.log('counted:', err2, count);
      db.close();
    });
  });
});

running db.close() closes mongo connection, but is there anyway I can disconnect the tunnel connection gracefully?

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions