import type { ClientEvent } from "../types/events";

export function emitClientEvent(
  handler: ((event: ClientEvent) => void) | undefined,
  event: ClientEvent
) {
  console.log("[player-event]", event);
  handler?.(event);
}
