Skip to main content

Built and signed on GitHub Actions

An ActivityPub/fediverse server framework

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
a week ago (1.3.0)
method MessageQueue.listen
MessageQueue.listen(
handler: (message: any) => Promise<void> | void,
): Promise<void>

Listens for messages in the queue.

Parameters

handler: (message: any) => Promise<void> | void

The handler for messages in the queue.

optional
options: MessageQueueListenOptions

Additional options for listening to the message queue.

Return Type

Promise<void>

A promise that resolves when the listening is done. It never rejects, and is resolved when the signal is aborted. If no signal is provided, it never resolves.

Add Package

deno add jsr:@fedify/fedify

Import symbol

import { type MessageQueue } from "@fedify/fedify";

---- OR ----

Import directly with a jsr specifier

import { type MessageQueue } from "jsr:@fedify/fedify";

Add Package

npx jsr add @fedify/fedify

Import symbol

import { type MessageQueue } from "@fedify/fedify";

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

import { type MessageQueue } from "@fedify/fedify";

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

import { type MessageQueue } from "@fedify/fedify";

Add Package

bunx jsr add @fedify/fedify

Import symbol

import { type MessageQueue } from "@fedify/fedify";