Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix DEP0112 #2

Merged
merged 1 commit into from
Jan 15, 2024
Merged

Fix DEP0112 #2

merged 1 commit into from
Jan 15, 2024

Conversation

jNullj
Copy link
Contributor

@jNullj jNullj commented Jan 13, 2024

Node.js v11+ introduced DEP0112 which deprecated Socket.prototype._bindState used in this module.
When running the following deprecation warning show and the property isn't being used:

(node:6402) [DEP0112] DeprecationWarning: Socket.prototype._bindState is deprecated

This PR replaces _bindState with a new isBound property which is added to the SSDP function to track the state of the Socket.

Tested on my setup and it appears to work.

Fix nodejs v11+ DEP0112
Socket.prototype._bindState is deprecated
Replace _bindState with a new isBound property
@lsongdev lsongdev merged commit 7aef6bb into lsongdev:master Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants