connect example

This commit is contained in:
Kevin Jahns 2014-08-20 16:39:42 +02:00
parent f4fdfda9ba
commit d8a4d8613e

View File

@ -13,9 +13,9 @@
### Create Connector ### Create Connector
The PeerJs Framework requires an API key, or you need to set up your own PeerJs server. The PeerJs Framework requires an API key, or you need to set up your own PeerJs server.
Get an API key from the Website. Get an API key from the [Website](http://peerjs.com/peerserver).
The first parameter of `createPeerJsConnector` is forwarded as the options object in PeerJs. The first parameter of `createPeerJsConnector` is forwarded as the options object in PeerJs.
Therefore, you may also specify the server/port here. Therefore, you may also specify the server/port here, if you have set up your own server.
*/ */
var yatta, yattaHandler; var yatta, yattaHandler;
Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){ Y.createPeerJsConnector({key: 'h7nlefbgavh1tt9'}, function(Connector, user_id){