Open JyHu opened 1 year ago
Sorry for the late reply. If you wanna use some properties, you can submit issues here or make PR to us. Thanks
I wonder if there is an official standard practice for this. In the actual implementation, the userProperty is set as a Dictionary type, but when interacting with the backend, only the values of the Dictionary are used. In my testing, I found that we need to send all the data to the backend. Here is an example of the code:
if let userProperty = self.userProperties {
for (key, value) in userProperty {
properties += getMQTTPropertyData(type: CocoaMQTTPropertyName.userProperty.rawValue, value: key.bytesWithLength + value.bytesWithLength)
}
}
Furthermore, I noticed that there are many places within the framework where userProperty is passed around, but only the values are used.
@leeway1208
In the definition of the entire framework, UserProperty is defined as a dictionary type. However, in the usage of
FrameSubscribe.swift
andFrameUnsubscribe.swift
, only the values of the dictionary are extracted. Why is that?