Connect
POST / HTTP/1.1
Content-Type: application/json; charset=utf-8
User-Agent: PostmanRuntime/7.26.3
Accept: */*
Postman-Token:
Host:
Accept-Encoding: gzip, deflate, br
Connection: keep-alive
Content-Length: 19
{
"test": 1
}
net.createServer( (sockComm) => {
sockComm.on('data', ( command ) => {
console.log(JSON.parse( command.toString() ) )
})
sockComm.on('end', ( command ) => {
console.log(command)
})
}).listen(port_command)