ChainGraph API Documentation / @badaitech/chaingraph-channel / types / TRPCChannelConfig
Interface: TRPCChannelConfig
Defined in: types/ChannelConfig.d.ts:233
Configuration for TRPCChannel (future implementation).
Extends
Properties
authToken?
optionalauthToken:string
Defined in: types/ChannelConfig.d.ts:245
Authentication token (optional).
cleanupStrategy?
optionalcleanupStrategy:BufferCleanupStrategy
Defined in: types/ChannelConfig.d.ts:28
Buffer cleanup strategy when maxBufferSize is reached.
- min-position: Keep items from slowest subscriber forward (fair to all)
- sliding-window: Always keep last N items (simple, may drop slow consumers)
- time-based: Remove items older than maxBufferAge
- none: No cleanup (unbounded growth)
Default
'min-position'Inherited from
BaseChannelConfig.cleanupStrategy
maxBufferAge?
optionalmaxBufferAge:number
Defined in: types/ChannelConfig.d.ts:36
Maximum age of buffered items in milliseconds (for time-based cleanup).
Only used when cleanupStrategy is 'time-based'.
Default
60000 (1 minute)Inherited from
BaseChannelConfig.maxBufferAge
maxBufferSize?
optionalmaxBufferSize:number
Defined in: types/ChannelConfig.d.ts:17
Maximum buffer size (0 = unbounded)
When buffer exceeds this size, cleanup is triggered based on cleanupStrategy.
Default
1000 for InMemoryChannelDefault
0 for DBOSChannel (database-backed, no in-memory buffer limit)Inherited from
BaseChannelConfig.maxBufferSize
streamKey
streamKey:
string
Defined in: types/ChannelConfig.d.ts:241
Stream identifier on the server.
trpcUrl
trpcUrl:
string
Defined in: types/ChannelConfig.d.ts:237
tRPC server URL.
wsConfig?
optionalwsConfig:object
Defined in: types/ChannelConfig.d.ts:249
WebSocket configuration for subscriptions.
autoReconnect?
optionalautoReconnect:boolean
Reconnect on disconnect.
Default
truemaxReconnectAttempts?
optionalmaxReconnectAttempts:number
Maximum reconnect attempts.
Default
10reconnectDelay?
optionalreconnectDelay:number
Reconnect delay in milliseconds.
Default
1000