Hi,
For you first question, when you use the join function of the JSF this
call an internal raw of APE Server. No need to call mkChan to create the
channel. This is automaticaly done.
For your second question. I think your are using sessions. Sessions is
used to when a user refresh a page, it restore previous state of user.
Check you are not adding Session.js to the the array APE.Config.scripts.
Then clear your cookies it should work fine. For more informations about
sessions, read this :
http://www.ape-project.org/wiki/index.php/Tutorial:Using_sessions
Regards.
On 21/06/2010 09:33, vineet naik wrote:
Hi,
I am trying to make a user join a channel in the call back of an ajax
request. I noticed two things. Here is what i did.
I just used the code myApe,core.join('channelname'); and logged the
channel name in the call back of the multiPipeCreate event.
HEre are my observations
1) when i made the user join a channel using core.join('newchannel');
it logged 'newchannel' in the console of firebug which means a new
multipipe was created. Does it mean that the server side 'mkchan' part
can be skipped in this case ?
2) i refreshed the page after executing the core.join method above,
it automatically joined the channel on page refresh. But in the hello
world tutorial in ape docs in the call back of the client ready event
its says
<code>
//1) join 'testChannel'
client.core.join('testChannel');
</code>
so i removed this line from my code and it still joined the channel.
testchannel
Although everything is working as required, I just want to confirm if
i am doing it correctly and not missing anything important.
Thanks and regards,
Vineet
--
Nicolas Trani - Web engineer
Weelya - Improve the web
32 rue du faubourg boutonnet
34090 Montpellier
http://www.weelya.com
http://www.ape-project.org
--
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/