bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/whiteboard/cursors/service.js
2024-03-06 14:28:18 -03:00

15 lines
435 B
JavaScript

import Auth from '/imports/ui/services/auth';
import { throttle } from '/imports/utils/throttle';
import { makeCall } from '/imports/ui/services/api';
const { cursorInterval: CURSOR_INTERVAL } = window.meetingClientSettings.public.whiteboard;
const publishCursorUpdate = throttle(
(payload) => makeCall('publishCursorUpdate', Auth.meetingID, Auth.userID, payload),
CURSOR_INTERVAL,
);
export default {
publishCursorUpdate,
};