Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script type="text/javascript">
- var myApe = {};
- myApe.client = new APE.Client();
- myApe.client.load({
- identifier: 'kreuzmichLiveKreuze', // Identifier of the application
- channel: ['chan1', 'chan2'], // Channel to join at startup
- complete: function() { // Function executed once APE is fully loaded
- new APE.LiveKreuze(myApe.client);
- }
- });
- </script>
- ---
- <script type="text/javascript">
- APE.LiveKreuze = function(ape, options)
- {
- that = this;
- // we call this function once APE has finished loading
- this.initialize = function()
- {
- ape.core.addEvent('multiPipeCreate', that.createPipe);
- ape.core.start({'name': "rnd" + Math.round(Math.random()/(1/9999))});
- }
- this.createPipe = function(pipe, options)
- {
- console.log("createPipe " + pipe);
- pipe.onRaw('postmsg', function(raw, pipe) {console.log(pipe);});
- }
- this.initialize();
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement