GSI - Employe Self Service Mobile
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
748 B

2 months ago
  1. # @firebase/webchannel-wrapper
  2. _NOTE: This is specifically tailored for Firebase JS SDK usage, if you are not a member of the Firebase team, please avoid using this package_
  3. This is a wrapper of some Webchannel Features for the Firebase JS SDK.
  4. ## Usage
  5. The following 5 modules are exposed for use:
  6. - `createWebChannelTransport`
  7. - `ErrorCode`
  8. - `EventType`
  9. - `WebChannel`
  10. - `XhrIoPool`
  11. You can include these by doing the following:
  12. **ES Modules**
  13. ```javascript
  14. import { WebChannel } from '@firebase/webchannel-wrapper'
  15. // Do stuff with WebChannel
  16. ```
  17. **CommonJS Modules**
  18. ```javascript
  19. const webchannelWrapper = require('@firebase/webchannel-wrapper');
  20. // Do stuff with webchannelWrapper.ErrorCode, webchannelWrapper.EventType, etc
  21. ```