Socket
Socket
Sign inDemoInstall

@aws-sdk/middleware-eventstream

Package Overview
Dependencies
3
Maintainers
5
Versions
143
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/middleware-eventstream


Version published
Maintainers
5
Created

Package description

What is @aws-sdk/middleware-eventstream?

@aws-sdk/middleware-eventstream is a middleware package for the AWS SDK for JavaScript. It provides functionality to handle event streams, which are used in various AWS services to deliver real-time data. This package is essential for working with services that use event streams, such as AWS Transcribe, AWS Kinesis, and others.

What are @aws-sdk/middleware-eventstream's main functionalities?

Event Stream Handling

This feature allows you to handle event streams by marshalling data into the event stream format. The code sample demonstrates how to create an event stream using the EventStreamMarshaller.

const { EventStreamMarshaller } = require('@aws-sdk/middleware-eventstream');

const marshaller = new EventStreamMarshaller();

const eventStream = marshaller.marshall({
  headers: {},
  body: Buffer.from('example event data')
});

console.log(eventStream);

Event Stream Unmarshalling

This feature allows you to unmarshall event streams back into their original data format. The code sample demonstrates how to unmarshall an event stream using the EventStreamMarshaller.

const { EventStreamMarshaller } = require('@aws-sdk/middleware-eventstream');

const marshaller = new EventStreamMarshaller();

const eventStream = Buffer.from('example event stream');
const event = marshaller.unmarshall(eventStream);

console.log(event);

Other packages similar to @aws-sdk/middleware-eventstream

Changelog

Source

3.329.0 (2023-05-08)

Bug Fixes

  • fetch-http-handler: check for null fetch response.body (#4705) (4468be6)

Features

  • client-glue: We don't do release notes https://w.amazon.com/bin/view/AWSDocs/common-tasks/release-notes (7676eac)
  • client-guardduty: Add AccessDeniedException 403 Error message code to support 3 Tagging related APIs (cef7c65)
  • client-iotsitewise: Provide support for 20,000 max results for GetAssetPropertyValueHistory/BatchGetAssetPropertyValueHistory and 15 minute aggregate resolution for GetAssetPropertyAggregates/BatchGetAssetPropertyAggregates (b0aef34)
  • client-sts: Documentation updates for AWS Security Token Service. (eaced29)
  • clients: update client endpoints as of 2023-05-08 (d930cb2)

Readme

Source

@aws-sdk/middleware-eventstream

NPM version NPM downloads

FAQs

Last updated on 08 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc