mirror of
https://git.steelants.cz/JonatanRek/VUE_GabenParadise.git
synced 2026-10-11 19:34:33 +00:00
Initial Commit
This commit is contained in:
commit
452829f0e1
3410 files changed
+523857
No files matched your search
+41
@@ -0,0 +1,41 @@
|
||||
# @firebase/webchannel-wrapper
|
||||
|
||||
_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_
|
||||
|
||||
This is a wrapper of some Webchannel Features for the Firebase JS SDK.
|
||||
|
||||
## Installation
|
||||
|
||||
You can install this wrapper by running the following in your project:
|
||||
|
||||
```bash
|
||||
$ npm install @firebase/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**
|
||||
|
||||
```javascript
|
||||
import { WebChannel } from '@firebase/webchannel-wrapper'
|
||||
|
||||
// Do stuff with WebChannel
|
||||
```
|
||||
|
||||
**CommonJS Modules**
|
||||
|
||||
```javascript
|
||||
const webchannelWrapper = require('@firebase/webchannel-wrapper');
|
||||
|
||||
// Do stuff with webchannelWrapper.ErrorCode, webchannelWrapper.EventType, etc
|
||||
```
|
||||
Reference in new issue
Block a user