(content: any)
| 193 | } |
| 194 | |
| 195 | public parseMessage(content: any): ReadPacket & PacketId { |
| 196 | try { |
| 197 | return JSON.parse(content); |
| 198 | } catch (e) { |
| 199 | return content; |
| 200 | } |
| 201 | } |
| 202 | |
| 203 | public matchMqttPattern(pattern: string, topic: string) { |
| 204 | const patternSegments = pattern.split(MQTT_SEPARATOR); |
no test coverage detected