examples
This commit is contained in:
		
							parent
							
								
									590c5ea900
								
							
						
					
					
						commit
						ee7c5e4bad
					
				@ -258,7 +258,7 @@
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -302,7 +302,7 @@ data from the received intent.</p>
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -335,7 +335,7 @@ JsonFramework was initialized (Depending on the HistoryBuffer implementation).</
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -466,7 +466,7 @@ if (x.type === "JsonType") {
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -139,7 +139,7 @@ console.log(w.newProperty == "Awesome") # true!</code></pre>
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -242,7 +242,7 @@ on how to do that with urls.</p>
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -356,7 +356,7 @@ JsonFramework was initialized (Depending on the HistoryBuffer implementation).</
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -455,7 +455,7 @@ yatta.bind(textbox);</code></pre>
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -303,7 +303,7 @@ JsonFramework was initialized (Depending on the HistoryBuffer implementation).</
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -38,7 +38,7 @@
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -76,7 +76,7 @@ But I would become really motivated if you gave me some feedback :) (<a href="ht
 | 
				
			|||||||
</ul>
 | 
					</ul>
 | 
				
			||||||
<h2 id="support">Support</h2><p>Please report <em>any</em> issues to the <a href="https://github.com/DadaMonad/Yatta/issues">Github issue page</a>!
 | 
					<h2 id="support">Support</h2><p>Please report <em>any</em> issues to the <a href="https://github.com/DadaMonad/Yatta/issues">Github issue page</a>!
 | 
				
			||||||
I would appreciate if developers gave me feedback on how <em>convenient</em> the framework is, and if it is easy to use. Particularly the XML-support may not support every DOM-methods - if you encounter a method that does not cause any change on other peers,
 | 
					I would appreciate if developers gave me feedback on how <em>convenient</em> the framework is, and if it is easy to use. Particularly the XML-support may not support every DOM-methods - if you encounter a method that does not cause any change on other peers,
 | 
				
			||||||
please state function name, and sample parameters. However, there are browser-specific features, that Yatta won't support.</p><h2 id="license">License</h2><p>Yatta! is licensed under the <a href="./LICENSE.txt">MIT License</a>.</p><a href="mailto:kevin.jahns@rwth-aachen.de">kevin.jahns@rwth-aachen.de</a>
 | 
					please state function name, and sample parameters. However, there are browser-specific features, that Yatta won't support.</p><h2 id="license">License</h2><p>Yatta! is licensed under the <a href="./LICENSE.txt">MIT License</a>.</p><a href="mailto:kevin.jahns@rwth-aachen.de">kevin.jahns@rwth-aachen.de</a>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -85,7 +85,7 @@ please state function name, and sample parameters. However, there are browser-sp
 | 
				
			|||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -100,7 +100,7 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -158,7 +158,7 @@
 | 
				
			|||||||
</div>
 | 
					</div>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@
 | 
				
			|||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -48,7 +48,7 @@
 | 
				
			|||||||
</dl>
 | 
					</dl>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -60,7 +60,7 @@
 | 
				
			|||||||
</dl>
 | 
					</dl>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -60,7 +60,7 @@
 | 
				
			|||||||
</dl>
 | 
					</dl>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -60,7 +60,7 @@
 | 
				
			|||||||
</dl>
 | 
					</dl>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -48,7 +48,7 @@
 | 
				
			|||||||
</dl>
 | 
					</dl>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@
 | 
				
			|||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@
 | 
				
			|||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@
 | 
				
			|||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@
 | 
				
			|||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -37,7 +37,7 @@
 | 
				
			|||||||
      </table>
 | 
					      </table>
 | 
				
			||||||
    </div>
 | 
					    </div>
 | 
				
			||||||
    <div id='footer'>
 | 
					    <div id='footer'>
 | 
				
			||||||
  October 06, 14 15:25:31 by
 | 
					  October 06, 14 16:55:15 by
 | 
				
			||||||
  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
					  <a href='https://github.com/coffeedoc/codo' title='CoffeeScript API documentation generator'>
 | 
				
			||||||
    Codo
 | 
					    Codo
 | 
				
			||||||
  </a>
 | 
					  </a>
 | 
				
			||||||
 | 
				
			|||||||
@ -24,7 +24,31 @@ Therefore, you may also specify the server/port here, if you have set up your ow
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
var yatta, yattaHandler;
 | 
					var yatta, yattaHandler;
 | 
				
			||||||
Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to the server owned by the peerjs team.
 | 
				
			||||||
 | 
					For now, you can use my API key.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					// var conn = {key: 'h7nlefbgavh1tt9'};
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to one of my peerjs instances.
 | 
				
			||||||
 | 
					I can't guaranty that this will be always up. This is why you should use the previous method with the api key,
 | 
				
			||||||
 | 
					or set up your own server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					var conn = {
 | 
				
			||||||
 | 
					  host: "terrific-peerjs.herokuapp.com",
 | 
				
			||||||
 | 
					  port: "", // this works because heroku can forward to the right port.
 | 
				
			||||||
 | 
					  // debug: true,
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Y.createPeerJsConnector(conn, function(Connector, user_id){
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -28,14 +28,27 @@ First create the connector - the underlaying communication protocol.
 | 
				
			|||||||
Here, we use the PeerJs connector. Its first parameter is the API key that you need to specify (see [website](http://peerjs.com/))
 | 
					Here, we use the PeerJs connector. Its first parameter is the API key that you need to specify (see [website](http://peerjs.com/))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to the server owned by the peerjs team.
 | 
				
			||||||
 | 
					For now, you can use my API key.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					     // var conn = {key: 'h7nlefbgavh1tt9'};
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to one of my peerjs instances.
 | 
				
			||||||
 | 
					I can't guaranty that this will be always up. This is why you should use the previous method with the api key,
 | 
				
			||||||
 | 
					or set up your own server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
    /*
 | 
					 | 
				
			||||||
     var conn = {key: 'h7nlefbgavh1tt9'}; // this will connect to the server owned by the peerjs team.
 | 
					 | 
				
			||||||
     */
 | 
					 | 
				
			||||||
    var conn = {
 | 
					    var conn = {
 | 
				
			||||||
      host: "127.0.0.1/", //"terrific-peerjs.herokuapp.com/",
 | 
					      host: "terrific-peerjs.herokuapp.com",
 | 
				
			||||||
      port: 5000
 | 
					      port: "", // this works because heroku can forward to the right port.
 | 
				
			||||||
 | 
					      // debug: true,
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    Y.createPeerJsConnector(conn, function(Connector, user_id){
 | 
					    Y.createPeerJsConnector(conn, function(Connector, user_id){
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -24,7 +24,31 @@ Therefore, you may also specify the server/port here, if you have set up your ow
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
var yatta, yattaHandler;
 | 
					var yatta, yattaHandler;
 | 
				
			||||||
Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to the server owned by the peerjs team.
 | 
				
			||||||
 | 
					For now, you can use my API key.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					// var conn = {key: 'h7nlefbgavh1tt9'};
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to one of my peerjs instances.
 | 
				
			||||||
 | 
					I can't guaranty that this will be always up. This is why you should use the previous method with the api key,
 | 
				
			||||||
 | 
					or set up your own server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					var conn = {
 | 
				
			||||||
 | 
					  host: "terrific-peerjs.herokuapp.com",
 | 
				
			||||||
 | 
					  port: "", // this works because heroku can forward to the right port.
 | 
				
			||||||
 | 
					  // debug: true,
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Y.createPeerJsConnector(conn, function(Connector, user_id){
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  yatta = new Y.XmlFramework(user_id, Connector);
 | 
					  yatta = new Y.XmlFramework(user_id, Connector);
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
				
			|||||||
@ -24,7 +24,32 @@ Therefore, you may also specify the server/port here, if you have set up your ow
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
```js
 | 
					```js
 | 
				
			||||||
var yatta, yattaHandler;
 | 
					var yatta, yattaHandler;
 | 
				
			||||||
Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to the server owned by the peerjs team.
 | 
				
			||||||
 | 
					For now, you can use my API key.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					// var conn = {key: 'h7nlefbgavh1tt9'};
 | 
				
			||||||
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					This will connect to one of my peerjs instances.
 | 
				
			||||||
 | 
					I can't guaranty that this will be always up. This is why you should use the previous method with the api key,
 | 
				
			||||||
 | 
					or set up your own server.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					```js
 | 
				
			||||||
 | 
					var conn = {
 | 
				
			||||||
 | 
					  host: "terrific-peerjs.herokuapp.com",
 | 
				
			||||||
 | 
					  port: "", // this works because heroku can forward to the right port.
 | 
				
			||||||
 | 
					  // debug: true
 | 
				
			||||||
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					Y.createPeerJsConnector(conn, function(Connector, user_id){
 | 
				
			||||||
```
 | 
					```
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user