Skip to content

armgit / orca

Public Imported from GitHub
0

Orca is the place for working with a fleet of agents (e.g. Grok Bot, Claude Code). Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

478 B
Raw Blame
type ConnectionRevivalReason = 'app-resume' | 'network-change'

const listeners = new Set<(reason: ConnectionRevivalReason) => void>()

export function subscribeConnectionRevival(
  listener: (reason: ConnectionRevivalReason) => void
): () => void {
  listeners.add(listener)
  return () => {
    listeners.delete(listener)
  }
}

export function publishConnectionRevival(reason: ConnectionRevivalReason): void {
  for (const listener of listeners) {
    listener(reason)
  }
}