Trying to connect with named-pipe in Angular Service and build in Electron.
I tried net socket classes but seems like it is not working as not getting the console.log on data.
import * as net from 'net';
const client: net.Socket = net.connect(namedPipePath);
client.on("data", (d: Buffer) => console.log("connected", d.toString('utf8')));
client.on("error", (err) => console.error(err));
client.on("end", () => console.log('disconnected from server'));
I should get the console.log("connected", d.toString('utf8')))