send
(since )
Shortcut to send a message on pipe.
Description
string
send
(
string msg )
Shortcut to send a message on pipe.
Parameters
msg
Send a message on a pipe.
Examples
//ape var is a reference to APE instance
//Join channel testChannel
ape.join('testChannel');
ape.addEvent('pipeCreate', function(type, pipe, options) {
//Send "Hello world" on the pipe
pipe.send('Hello world');
//pipe.send is a shorcut for :
pipe.request.send({'msg':'Hellow world'});
});
User notes
Post a note
CollaborAPE to our wiki !
Find the information you need on the APE Official Wiki : Install, Server, JSF, Help...

<source="javascript">
//pipe.send is a shorcut for :
pipe.request.send({'msg':'Hellow world'});
</source>
must be
<source="javascript">
//pipe.send is a shorcut for :
pipe.request.send('send',{'msg':'Hellow world'});
</source>
A question also, we can't send with "send command" another parameter ?? Only "msg" seems availible, it's so bad...
I need for example :
<source="javascript">
pipe.request.send('send',{'alerte_writing':'1'});
</source>