ChannelSelector
Stentor API Reference / stentor-runtime/src / ChannelSelector
Class: ChannelSelector
Defined in: packages/stentor-runtime/src/ChannelSelector.ts:5
Constructorsβ
Constructorβ
new ChannelSelector():
ChannelSelector
Returnsβ
ChannelSelector
Methodsβ
from()β
from(
channels,request,lambdaContext?):Channel
Defined in: packages/stentor-runtime/src/ChannelSelector.ts:13
Selects a channel from one of the provided based on the request body and infrastructure context.
Parametersβ
channelsβ
Channel[]
Array of possible channels
requestβ
object
The request body.