Btw, there is an error in the documentation : var newpipe = Ape.pipe();
Should be : var newpipe = new Ape.pipe(); On Oct 18, 4:09 am, para <[email protected]> wrote: > Hi Dominik, > > For your first question I think you misunderstood. This article is > about "Server-Side javascript", not client side :) > APE 1.0 support Javascript module for the server. (Look at your ./ > APE_Server/scripts/ directory). > > >"My application > > increases this number every time I refresh the application page and so > > I soon have for example the ape URL 83.ape.domain.com and I don't > > think that this is the usual behaviour, is it?" > > Yes, it's the usual behaviour. (It's because it's hard to detect if > it's a refresh or a new opened tab/window) > > When I open two browser tabs for my > > > application I of course see two users, who joined a channel. > > You can avoid this by loading "Sessions.js". With this, every tabs/ > window you open connect the same user with the same message queue > (everything is synchronized). > > >But when > > I close one tab, he needs some time to realize that the user has left > > (so just realizes it when the open connection of this tab times out). > > Is there a way to immediately tell the server that a user has left > > when I close a tab/window? > > Indeed, some browser don't have a good deal with "onunload" event. So, > APE Server can't know when a user left. (You can tune the timeout in ./ > src/main.h) > > Feel free to come on our IRC channel (irc.freenode.org/#ape- > project) ;) > > Anthony Catel > > On Oct 18, 3:10 am, Dominik <[email protected]> wrote: > > > Hi! > > > First of all I have to say that you really did a great job so far, I > > really like this project! > > > I installed an Ape server in an Ubuntu system and now play a bit with > > it. I tried to establish a simple communication between my browser and > > the server and read the Article about serverside JS (http://www.ape- > > project.org/wiki/index.php/How_to_build_a_serverside_JS_module). In > > this article it is said that a new pipe could be created with the > > command Ape.pipe(). I tried this but the browser said that this > > function is not defined, and I could not find a definition of this > > function in the serverside scripts. Is the article wrong or did I miss > > to include a certain script?? > > > The second question I have is about the frequency, leading to the > > number in the URL (for example 0.ape.domain.com). My application > > increases this number every time I refresh the application page and so > > I soon have for example the ape URL 83.ape.domain.com and I don't > > think that this is the usual behaviour, is it? Did I make a mistake in > > the configuration?? > > > Ah, just another small question: When I open two browser tabs for my > > application I of course see two users, who joined a channel. But when > > I close one tab, he needs some time to realize that the user has left > > (so just realizes it when the open connection of this tab times out). > > Is there a way to immediately tell the server that a user has left > > when I close a tab/window? > > > Thanks for your help! > > > Best regards, > > Dominik --~--~---------~--~----~------------~-------~--~----~ 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/ -~----------~----~----~----~------~----~------~--~---
