webchannel-wrapper

A library for use webchannels outside of the closure compiler


License
Apache-2.0
Install
npm install webchannel-wrapper@0.0.2

Documentation

webchannel-wrapper

This is a wrapper of some Webchannel Features.

Installation

You can install this wrapper by running the following in your project:

$ npm install webchannel-wrapper

Usage

The following 5 modules are exposed for use:

  • createWebChannelTransport
  • ErrorCode
  • EventType
  • WebChannel
  • XhrIoPool

You can include these by doing the following:

ES Modules

import { WebChannel } from '@firebase/webchannel-wrapper'

// Do stuff with WebChannel

CommonJS Modules

const webchannelWrapper = require('@firebase/webchannel-wrapper');

// Do stuff with webchannelWrapper.ErrorCode, webchannelWrapper.EventType, etc