* @version $Id$ */ namespace EGroupware\Api\Json; /** * Interface for push backends */ interface PushBackend { /** * Adds any type of data to the message * * @param ?int|int[] $account_id account_id(s) to push message too, null: session, 0: whole instance * @param string $key * @param mixed $data * @throws Exception\NotOnline if $account_id is not online */ public function addGeneric($account_id, $key, $data); /** * Get users online / connected to push-server * * @return array of integer account_id currently available for push */ public function online(); }