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

@smithy/eventstream-serde-browser

Package Overview
Dependencies
Maintainers
2
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smithy/eventstream-serde-browser

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

  • 2.0.14
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created

What is @smithy/eventstream-serde-browser?

@smithy/eventstream-serde-browser is a package designed to handle serialization and deserialization of event streams in a browser environment. It is part of the AWS SDK for JavaScript and is used to process event streams, which are sequences of events that can be sent and received over a network connection.

What are @smithy/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 a network. The code sample demonstrates how to create an instance of EventStreamMarshaller and serialize an event.

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

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

Deserialization of Event Streams

This feature allows you to deserialize a received event stream back into its original event format. The code sample shows how to create an instance of EventStreamMarshaller and deserialize a binary event stream.

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

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

Other packages similar to @smithy/eventstream-serde-browser

FAQs

Package last updated on 21 Nov 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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc