Skip to content

Commit 77e421e

Browse files
feat(client): reexport getEventMeta, withEventMeta (#1508)
Fixes: https://discordapp.com/channels/1308966753044398161/1486710936906498119 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Documentation** * Updated Redis publisher configuration example with clarified parameter naming. * **New Features** * Expanded client API with additional event handling exports for enhanced integration capabilities. * Expanded server API with additional event handling exports, including error event support and metadata utilities. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 6ca5c71 commit 77e421e

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

apps/content/docs/helpers/publisher.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ const publisher = new IORedisPublisher<{
189189
}
190190
}>({
191191
commander: new Redis(), // For executing short-lived commands
192-
subscriber: new Redis(), // For subscribing to events
192+
listener: new Redis(), // For subscribing to events
193193
resumeRetentionSeconds: 60 * 2, // Retain events for 2 minutes to support resume
194194
prefix: 'orpc:publisher:', // avoid conflict with other keys
195195
customJsonSerializers: [] // optional custom serializers

packages/client/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,5 @@ export {
1919
streamToAsyncIteratorClass as streamToEventIterator,
2020
} from '@orpc/shared'
2121
export type { EventPublisherOptions, EventPublisherSubscribeIteratorOptions, Registry, ThrowableError } from '@orpc/shared'
22-
export { ErrorEvent } from '@orpc/standard-server'
22+
export { ErrorEvent, getEventMeta, withEventMeta } from '@orpc/standard-server'
23+
export type { EventMeta } from '@orpc/standard-server'

packages/server/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,5 @@ export {
5252
streamToAsyncIteratorClass as streamToEventIterator,
5353
} from '@orpc/shared'
5454
export type { EventPublisherOptions, EventPublisherSubscribeIteratorOptions, Registry, ThrowableError } from '@orpc/shared'
55-
export { getEventMeta, withEventMeta } from '@orpc/standard-server'
55+
export { ErrorEvent, getEventMeta, withEventMeta } from '@orpc/standard-server'
56+
export type { EventMeta } from '@orpc/standard-server'

0 commit comments

Comments
 (0)