diff --git a/src/components/composite-area.tsx b/src/components/composite-area.tsx index fa43221..97b97cc 100644 --- a/src/components/composite-area.tsx +++ b/src/components/composite-area.tsx @@ -99,7 +99,7 @@ export function CompositeArea({ background, isRunning }: CompositeParameters) { const buffer = Buffer.from(arrayBuffer); send({ - action: "livePainting:imageBuffer", + action: "image-to-image:imageBuffer", payload: { appId: APP_ID, buffer }, }); }, diff --git a/src/components/rendering-area.tsx b/src/components/rendering-area.tsx index f462ab6..d125623 100644 --- a/src/components/rendering-area.tsx +++ b/src/components/rendering-area.tsx @@ -12,7 +12,7 @@ export function RenderingArea() { onMessage(message) { // eslint-disable-next-line default-case switch (message.action) { - case "livePainting:generated": { + case "image-to-image:generated": { if (imgReference.current) { imgReference.current.src = message.payload; } diff --git a/src/components/vj.tsx b/src/components/vj.tsx index a249a0b..91f3bc3 100644 --- a/src/components/vj.tsx +++ b/src/components/vj.tsx @@ -101,13 +101,13 @@ export function VJ() { const { send } = useSDK(APP_ID, { onMessage(message) { switch (message.action) { - case "livePainting:started": { + case "image-to-image:started": { setIsRunning(true); setIsLoading(false); break; } - case "livePainting:stopped": { + case "image-to-image:stopped": { setIsRunning(false); setIsLoading(false); break; @@ -122,12 +122,12 @@ export function VJ() { useWaveformAnalyzer(clearCounter); - useUnload(APP_ID, "livePainting:stop"); + useUnload(APP_ID, "image-to-image:stop"); useEffect(() => { if (isRunning) { send({ - action: "livePainting:settings", + action: "image-to-image:settings", payload: { prompt: [prompt, illustrationStyles[illustrationStyle]].join(", "), seed, @@ -149,14 +149,14 @@ export function VJ() { onStop={() => { setIsLoading(true); send({ - action: "livePainting:stop", + action: "image-to-image:stop", payload: { appId: APP_ID }, }); }} onStart={() => { setIsLoading(true); send({ - action: "livePainting:start", + action: "image-to-image:start", payload: { appId: APP_ID, stablefast: true }, }); }}