Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aws-sdk/eventstream-serde-browser

Package Overview
Dependencies
Maintainers
4
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aws-sdk/eventstream-serde-browser

[![NPM version](https://img.shields.io/npm/v/@aws-sdk/@aws-sdk/eventstream-serde-browser/alpha.svg)](https://www.npmjs.com/package/@aws-sdk/@aws-sdk/eventstream-serde-browser) [![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/@aws-sdk/eventstream-s

  • 1.0.0-gamma.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.3M
increased by5.98%
Maintainers
4
Weekly downloads
 
Created

What is @aws-sdk/eventstream-serde-browser?

@aws-sdk/eventstream-serde-browser is a package within the AWS SDK for JavaScript that provides serialization and deserialization of event streams in a browser environment. This is particularly useful for handling AWS services that use event streams, such as AWS Transcribe or AWS Kinesis.

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

Serialization of Event Streams

This feature allows you to serialize an event stream into a format that can be transmitted over the network. The code sample demonstrates how to create an EventStreamMarshaller and use it to serialize an event.

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

const marshaller = new EventStreamMarshaller(utf8Encoder, utf8Decoder);
const event = { eventType: 'example', data: 'sample data' };
const serializedEvent = marshaller.marshall(event);
console.log(serializedEvent);

Deserialization of Event Streams

This feature allows you to deserialize an event stream received over the network back into a JavaScript object. The code sample demonstrates how to create an EventStreamMarshaller and use it to deserialize a binary event stream.

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

const marshaller = new EventStreamMarshaller(utf8Encoder, utf8Decoder);
const serializedEvent = new Uint8Array([/* some binary data */]);
const event = marshaller.unmarshall(serializedEvent);
console.log(event);

Other packages similar to @aws-sdk/eventstream-serde-browser

FAQs

Package last updated on 21 May 2020

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc