- Node.js Version: 8.6.0
- OS: OSX
How can I pass a TLSSocket to a child process? (created from "https" module)
I'm having this issue:
internal/child_process.js:630
throw new errors.TypeError('ERR_INVALID_HANDLE_TYPE');
^
TypeError [ERR_INVALID_HANDLE_TYPE]: This handle type cannot be sent
Pseudo-code:
httpsServer.on('request',(request,response)=>{letsocket=request.connection;myChildProcess.send({},socket);})This works fine using "http" module. The error happens only when using "https".
Thanks in advance.
How can I pass a TLSSocket to a child process? (created from
"https"module)I'm having this issue:
Pseudo-code:
This works fine using
"http"module. The error happens only when using"https".Thanks in advance.