Skip to content

Commit

Permalink
gendocs
Browse files Browse the repository at this point in the history
  • Loading branch information
DamonOehlman committed Jun 10, 2014
1 parent 1d8586b commit 9f84f08
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 1 deletion.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# rtc-plugin-node

This is an rtc.io plugin that allows users to use modules such as
[rtc-quickconnect](https://github.com/rtc-io/rtc-quickconnect) with node
thanks to the awesome [node-webrtc](https://github.com/js-platform/node-webrtc)
(`wrtc`) module.


[![NPM](https://nodei.co/npm/rtc-plugin-node.png)](https://nodei.co/npm/rtc-plugin-node/)

[![Build Status](https://img.shields.io/travis/rtc-io/rtc-plugin-node.svg?branch=master)](https://travis-ci.org/rtc-io/rtc-plugin-node) [![experimental](https://img.shields.io/badge/stability-experimental-red.svg)](https://github.com/badges/stability-badges)

## Example Usage

The following example demonstrates how the plugin can be used in your code and enable
the same code to be written once, and work both in the browser and node environments:

```js
var quickconnect = require('rtc-quickconnect');
var opts = {
room: 'nodeplugin-test',
plugins: [ require('rtc-plugin-node') ]
};

quickconnect('http://localhost:3000/', opts)
.createDataChannel('test')
.on('channel:opened:test', function(id, dc) {
console.log('dc opened');
});

```

## License(s)

### Apache 2.0

Copyright 2014 National ICT Australia Limited (NICTA)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
11 changes: 11 additions & 0 deletions docs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"badges": {
"nodeico": true,
"travis": true,
"stability": "experimental"
},

"license": {
"holder": "National ICT Australia Limited (NICTA)"
}
}
10 changes: 10 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,17 @@ var webrtc = require('wrtc');
/**
# rtc-plugin-node
This is an rtc.io plugin that allows users to use modules such as
[rtc-quickconnect](https://github.com/rtc-io/rtc-quickconnect) with node
thanks to the awesome [node-webrtc](https://github.com/js-platform/node-webrtc)
(`wrtc`) module.
## Example Usage
The following example demonstrates how the plugin can be used in your code and enable
the same code to be written once, and work both in the browser and node environments:
<<< examples/datachannel.js
**/
exports.supported = function(platform) {
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "An rtc.io plugin that uses the node-webrtc (wrtc) package for WebRTC primitives",
"main": "index.js",
"scripts": {
"test": "node test/all.js"
"test": "node test/all.js",
"gendocs": "gendocs > README.md"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9f84f08

Please sign in to comment.