Skip to content

Commit e891849

Browse files
committed
init
0 parents  commit e891849

17 files changed

+5423
-0
lines changed

.babelrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["@babel/preset-env"]
3+
}

.eslintrc.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
extends: airbnb/base
2+
# plugins:
3+
# - mocha
4+
globals:
5+
describe: true
6+
it: true
7+
beforeEach: true
8+
afterEach: true
9+
Promise: true
10+
rules:
11+
indent:
12+
- error
13+
- 4
14+
max-len:
15+
- error
16+
- 120
17+
- ignoreComments: true
18+
- ignoreUrls: true
19+
global-require: 0
20+
vars-on-top: 0
21+
padded-blocks: 0
22+
no-console: 0
23+
prefer-const: 0
24+
prefer-template: 0
25+
comma-dangle: 0
26+
consistent-return: 0
27+
no-param-reassign: 0
28+
no-underscore-dangle: 0
29+
no-unused-vars:
30+
- warn
31+
- varsIgnorePattern: "process"
32+
import/no-unresolved:
33+
- "error"
34+
- ignore:
35+
- state
36+
parserOptions:
37+
sourceType: module

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
node_modules/.bin
3+
.DS_Store

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License
2+
3+
Copyright (c) 2019 Adam Bavosa
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# JS WebRTC Video Chat Plugin with PubNub
2+
3+
Adds the ability to do 1 to 1 WebRTC audio/video calls with PubNub. The PubNub key set must have PubNub Presence enabled. The example folder app uses Xirsys to get TURN server access via a PubNub Function.
4+
5+
Better details and docs to come soon.

build.js

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var fs = require("fs");
2+
var browserify = require("browserify");
3+
var babelify = require("babelify");
4+
5+
browserify({
6+
debug: false
7+
}).transform(babelify)
8+
.require("./src/pubnub-js-webrtc.js", { entry: true })
9+
.bundle()
10+
.on("error", function (err) { console.log("Error: " + err.message); })
11+
.pipe(fs.createWriteStream("./dist/pubnub-js-webrtc.js"));

0 commit comments

Comments
 (0)