Skip to main content
This release is a pre-release — the latest non-prerelease version of @fedify/fedify is 1.5.1. Jump to this version

@fedify/fedify@1.6.0-dev.757+7fa54fbc
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
94%
Published
3 weeks ago (1.6.0-dev.757+7fa54fbc)

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

interface MessageQueue

An abstract interface for a message queue.

Properties

optional
enqueueMany: (
messages: any[],
) => Promise<void>

Enqueues multiple messages in the queue. This operation is optional, and may not be supported by all implementations. If not supported, Fedify will invoke enqueue for each message.

Methods

enqueue(
message: any,
): Promise<void>

Enqueues a message in the queue.

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

Listens for messages in the queue.

Add Package

deno add jsr:@fedify/fedify

Import symbol

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

---- OR ----

Import directly with a jsr specifier

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

Add Package

npx jsr add @fedify/fedify

Import symbol

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

Add Package

yarn dlx jsr add @fedify/fedify

Import symbol

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

Add Package

pnpm dlx jsr add @fedify/fedify

Import symbol

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

Add Package

bunx jsr add @fedify/fedify

Import symbol

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