Route sms.ts through its handlers, all of it
Test / lint (pull_request) Successful in 23s
Test / test (18) (pull_request) Successful in 38s
Test / test (20) (pull_request) Successful in 30s
Test / test (22) (pull_request) Successful in 33s
Test / test (24) (pull_request) Successful in 35s
Test / test (26) (pull_request) Successful in 34s
Mirror / push (push) Successful in 5s
Test / lint (pull_request) Successful in 23s
Test / test (18) (pull_request) Successful in 38s
Test / test (20) (pull_request) Successful in 30s
Test / test (22) (pull_request) Successful in 33s
Test / test (24) (pull_request) Successful in 35s
Test / test (26) (pull_request) Successful in 34s
Mirror / push (push) Successful in 5s
This commit was merged in pull request #34.
This commit is contained in:
@@ -48,6 +48,7 @@ type Send = (input: PduObjectInput) => Promise<Result<{ pduObj: PduObject }>>;
|
||||
|
||||
/** What the incoming side asks of the session it serves; the session decides how. */
|
||||
export type IncomingDeps = {
|
||||
acceptsOptionalParams: () => boolean;
|
||||
answer: (pduObj: PduObject, status?: ErrorName, params?: Record<string, ParamValue>) => Promise<VoidResult>;
|
||||
bindAllows: (cmdName: string) => boolean;
|
||||
boundAs: () => BindType | undefined;
|
||||
@@ -318,6 +319,9 @@ export class IncomingRequests {
|
||||
pduObjs,
|
||||
to: paramText(first.params.destination_addr),
|
||||
}, {
|
||||
acceptsOptionalParams: () => this.deps.acceptsOptionalParams(),
|
||||
answer: (pduObj, status, params) => this.deps.answer(pduObj, status, params),
|
||||
bindAllows: cmdName => this.deps.bindAllows(cmdName),
|
||||
lostLink: () => this.linkGeneration !== generation,
|
||||
onAnswered: release,
|
||||
// Past the refusal only while a drain is still waiting for this message; an ordinary send after.
|
||||
|
||||
Reference in New Issue
Block a user