Skip to content

armgit / mimik

Public Imported from GitHub
0

🎬 A browser extension and desktop app that turns your clicks into step-by-step guides with annotated screenshots πŸ“–

251 B
Raw Blame
import { postTo } from './post-to';
import type { Port, PortMessage } from './types';

export function broadcastTo(ports: Set<Port>, message: PortMessage): void {
  for (const port of ports) {
    if (!postTo(port, message)) ports.delete(port);
  }
}