getChannelByName
(since 1.0)
Get the channel from its name
Description
getChannelByName
(
string name )
To retrieve a channel object by its name
Parameters
name
The channel name
Return values
The channel object if found or null if the channel does not exist
Examples
var channel = Ape.getChannelByName('foochannel');
channel.setProperty('foo', 'bar');
channel.myprivate = {'my':'private'}; // Can be a string or whatever you want
channel.pipe.sendRaw('FOORAW', {'John':'Doe'});
Ape.addEvent('beforeJoin', function(user, channel) {
Ape.log('My private : ' + channel.myprivate);
});
User notes
# No comment
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...
