Finished support for new connector type

This commit is contained in:
DadaMonad
2014-11-25 15:51:30 +00:00
parent 03925ab32f
commit e1900e8561
170 changed files with 73970 additions and 8705 deletions

View File

@@ -32,7 +32,7 @@ For now, you can use my API key.
```js
// var conn = {key: 'h7nlefbgavh1tt9'};
var conn = {key: 'h7nlefbgavh1tt9'};
```
@@ -42,13 +42,14 @@ or set up your own server.
```js
var conn = {
/*var conn = {
host: "terrific-peerjs.herokuapp.com",
port: "", // this works because heroku can forward to the right port.
// debug: true,
};
};*/
var rid = Math.floor(Math.random()*100 + 1)
Y.createPeerJsConnector(conn, function(Connector, user_id){
Y.createPeerJsConnector(rid, conn, function(Connector, user_id){
yatta = new Y.XmlFramework(user_id, Connector);
```