>
> So I have another question... First let me tell you what I want to do. I
> want to be able to have the web users be able to join a certain channel, if
> the channel don't exist I assume a mkchannel even will be fired and I want
> to start a set interval that will push out data to my client... However
> this don't work...
Server:
Ape.addEvent('mkChan', function(channel) {
//clearInterval(window["bidcutter_channel_" + auction_id]);
var window["bidcutter_channel_" + channel.getProperty('name')] =
Ape.setInterval(function(a,b) {
channel.pipe.sendRaw('FOORAW', {'John':'Doe'});
}, 1000);
});
Ape.addEvent('rmChan', function(channel) {
Ape.clearInterval(window["bidcutter_channel_" +
channel.getProperty('name')]);
});
client:
<script type="text/javaScript">
var client = new APE.Client();
//Load APE client
client.load();
client.addEvent('load', function() {
client.core.start({'name': '' + Date.now() + ''});//Start with
a random name
});
client.addEvent('ready', function() {
client.core.join('testChannel1');
});
client.onRaw('FOORAW', function(raw, pipe) {
console.log('Receving: ' + raw.data.msg);
});
</script>
I get no data - can you help or show me at least a little guidance? And
thanks so much!!!!
--
--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/ape-project?hl=en
---
APE Project (Ajax Push Engine)
Official website : http://www.ape-project.org/
Git Hub : http://github.com/APE-Project/
---
You received this message because you are subscribed to the Google Groups "APE
Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.