Connect to MongoDB via UNIX socket

Hello,
I’m trying to connect Rocket.Chat to MongoDB via UNIX socket by typing:

mongodb:///tmp/mongodb-27017.sock

but I get error’s.
How to do that proper way?