Closed niccololampa closed 5 years ago
Found the answer myself.
var pubsubInstance = new PGPubsub('postgres://username:password@localhost/database')
So in my case:
pubsubInstance = new PGPubsub('postgres://root:root@localhost:5432/sample_db');
Great that you managed to find a solution yourself! 🙌
Great that you managed to find a solution yourself! 🙌
@voxpelli Haha. Well when in need and desperate you just have to find a way to make it work. 🏄
I am trying to connect my postgres via my websocket and my postgres database logs the
My postgres setup is the following:
How do I properly write the syntax for
var pubsubInstance = new PGPubsub('postgres://username@localhost/database')
using the postgres credentials above ?Currenly this is how I wrote it
pubsubInstance = new PGPubsub('postgres://root@localhost:5432/sample_db');