Skip to content

NVR with realtime local object detection for IP cameras

236 B
Raw Blame
import { createContext } from "react";

export type Update = {
  topic: string;
  payload: unknown;
  retain: boolean;
};

export type WsSend = (update: Update) => void;

export const WsSendContext = createContext<WsSend | null>(null);