-
Notifications
You must be signed in to change notification settings - Fork 603
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(middleware-websocket): update eventStreamHandler to use MessageSi…
…gner (#4803) Co-authored-by: AndrewFossAWS <108305217+AndrewFossAWS@users.noreply.github.com>
- Loading branch information
1 parent
7529755
commit d8317fe
Showing
5 changed files
with
61 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/middleware-websocket/src/eventstream-payload-handler-provider.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
import { Decoder, Encoder, EventSigner, EventStreamPayloadHandlerProvider, Provider } from "@aws-sdk/types"; | ||
import { Decoder, Encoder, EventStreamPayloadHandlerProvider, MessageSigner, Provider } from "@aws-sdk/types"; | ||
|
||
import { EventStreamPayloadHandler } from "./EventStreamPayloadHandler"; | ||
|
||
/** NodeJS event stream utils provider */ | ||
export const eventStreamPayloadHandlerProvider: EventStreamPayloadHandlerProvider = (options: { | ||
utf8Encoder: Encoder; | ||
utf8Decoder: Decoder; | ||
eventSigner: Provider<EventSigner>; | ||
messageSigner: Provider<MessageSigner>; | ||
}) => new EventStreamPayloadHandler(options); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters