Constructor
Properties
app: FastifyInstance<RawServerDefault, IncomingMessage, ServerResponse<IncomingMessage>, FastifyBaseLogger, FastifyTypeProviderDefault>
The Fastify application instance.
queryLabelsHandler: QueryHandler<{ cursor?: string; limit?: string; sources?: string | string[]; ... }>
Handler for com.atproto.label.queryLabels.
subscribeLabelsHandler: SubscriptionHandler<{ cursor?: string; }>
Handler for com.atproto.label.subscribeLabels.
emitEventHandler: ProcedureHandler<ToolsOzoneModerationEmitEvent.InputSchema>
Handler for tools.ozone.moderation.emitEvent.
unknownMethodHandler: QueryHandler
Catch-all handler for unknown XRPC methods.
Methods
start(port, callback?)
Start the server.
Parameters
port: number
The port to listen on.
callback: (error: Error | null address: string) => void = ...
A callback to run when the server is started.
stop(callback?)
Stop the server.
Parameters
callback: () => void = ...
A callback to run when the server is stopped.
createLabel(label)
Create and insert a label into the database, emitting it to subscribers.
Parameters
label: CreateLabelData
The label to create.