James_C2
(James C)
35
HELLO EVERYBODY! I got it to work!
I was able to get the mongodb driver to work in cloudflare workers using module-aliases and TCP sockets!
Its a very minimal implementation and I would really be very grateful for any contributions to the repository 
I was able to achieve this by using module-aliases to polyfill the net.createConnection and tls.connect functions and make it return a mock Socket that utilizes cloudflares TCP sockets
The repository can be found here
2 Likes