data/edge5/video/v2/+
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { getHandler } from './registry.js'
|
||||
import { resolveHandler } from './registry.js'
|
||||
|
||||
export async function routeMessage(
|
||||
topic: string,
|
||||
payload: Buffer,
|
||||
): Promise<void> {
|
||||
const handler = getHandler(topic)
|
||||
const handler = resolveHandler(topic)
|
||||
|
||||
if (!handler) {
|
||||
console.warn('mqtt.unhandled_topic', { topic })
|
||||
|
||||
Reference in New Issue
Block a user