neumino / rethinkdbdash

An advanced Node.js driver for RethinkDB with a connection pool, support for streams etc.
MIT License
848 stars 109 forks source link

Expose original conn variable to client #362

Closed PassTheMayo closed 6 years ago

PassTheMayo commented 6 years ago

It would be very helpful if you could add the original conn to the RethinkDB client? It would allow people to assign their own events to it, including the close event.

neumino commented 6 years ago

Hum, I think there's a misunderstanding on how connections are used.

Connections are created/reused/closed as needed, there's a pool of connections, not a single one. There's also no need to listen to a specific connection. The driver already takes care of that.