Describe the bug
Inside MDNS.ts, it's using _handle in a few places. In particular:
if (platform === 'linux' && disableLinuxMulticastAllOption) {
socketUtils.disableSocketMulticastAll(
(unicastSocket as any)._handle.fd,
);
}
if (platform === 'linux' && disableLinuxMulticastAllOption) {
socketUtils.disableSocketMulticastAll((socket as any)._handle.fd);
}
The usage of _handle in the Socket prototype causes warnings.
It looks like this in PK CLI:
(node:500471) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated
(Use `node --trace-deprecation ...` to show where the warning was created)
Right after starting the agent.
Find an alternative way to do the above, or we need some way of disabling the warning? This is some sort of internal property right?
Apparently Node allows disabling warnings on startup.
To Reproduce
- Run Polykey-CLI
polykey agent start
- Observe warning in the terminal
Expected behavior
No warnings should occur.
Additional context
Notify maintainers
@amydevs
Describe the bug
Inside
MDNS.ts, it's using_handlein a few places. In particular:The usage of
_handlein theSocketprototype causes warnings.It looks like this in PK CLI:
(node:500471) [DEP0112] DeprecationWarning: Socket.prototype._handle is deprecated (Use `node --trace-deprecation ...` to show where the warning was created)Right after starting the agent.
Find an alternative way to do the above, or we need some way of disabling the warning? This is some sort of internal property right?
Apparently Node allows disabling warnings on startup.
To Reproduce
polykey agent startExpected behavior
No warnings should occur.
Additional context
Notify maintainers
@amydevs