Skip to content

🎥 Make videos programmatically with React

330 B
Raw Blame
import type {ApiHandler} from '../api-types';
import {signalShutdown} from '../close-and-restart';

export const handleShutdownStudio: ApiHandler<{}, {}> = ({response}) => {
	// Flush the acknowledgement before closing the HTTP and live-event connections.
	response.once('finish', signalShutdown);
	return Promise.resolve({});
};