-
Notifications
You must be signed in to change notification settings - Fork 95
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
[Bug]: TypeError when setting Packet Property to undefined #152
Labels
Comments
@mcollina I transferred the issue here as I think the properties should just be ignored when them are undefined |
A PR would be nice ;) |
I'll try to find some time for a PR this week. |
SoulKa
added a commit
to SoulKa/mqtt-packet
that referenced
this issue
Mar 3, 2025
SoulKa
added a commit
to SoulKa/mqtt-packet
that referenced
this issue
Mar 3, 2025
mcollina
pushed a commit
that referenced
this issue
Mar 4, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
MQTTjs Version
5.10.3
Broker
mosquitto 2.0.20
Environment
NodeJS
Description
Having a packet property set to
undefined
results in aTypeError
:This is allowed by the
IClientPublishOptions
interface and can easily happen if optional properties are passed along into thepublish()
method of theMqttClient
.Minimal Reproduction
Debug logs
The text was updated successfully, but these errors were encountered: