Unimplemented NET server does not extend EventEmitter.
Additional context
Using TLS server .once() function will throw an error hinting towards, socket.once does not exist. Some folks are thinking that Cloudflare workers does not support node:events and particularly once function because of this error. It indeed supports once() and emitter.once()
Environment
Cloudflare
Reproduction
Create a TLS server and call
.once()
functionDescribe the bug
Unimplemented NET server does not extend EventEmitter.
Additional context
Using TLS server
.once()
function will throw an error hinting towards,socket.once
does not exist. Some folks are thinking that Cloudflare workers does not support node:events and particularlyonce
function because of this error. It indeed supportsonce()
andemitter.once()
Please look into https://alexbevi.com/blog/2024/09/11/why-cloudflare-workers-dont-work-with-mongodb/
Logs
No response