left
(since )
Left a channel.
Description
string
left
(
string pubid )
Left (unsubscribe) a channel and fire the pipeDelete
Parameters
pubid
pubid of the channel
Examples
//ape var is a reference to APE instance
//Join testchannel
ape.join('testchannel');
//Intercept pipeCreate event (this event is fired when you join a channel)
ape.addEvent('multiPipeCreate', function(pipe, options) {
if (pipe.properties.name=='teschannel') {
//If pipe is testchannel, left it :p
ape.left(pipe.getPubid());
}
});
User notes
asdf said:
It should be called "leave" 16/02/10 23:19
chappy said:
Also, testchannel is spelt wrong in your if statement :) 19/10/10 20:28
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...
