hi nicolas,

hehe thanks for clarifying this. i got it mostly working. so i've
reached level 2 of the game :)
i've got a couple of more questions :)

        var client = new APE.Client();
        var shoutbox = null;
        client.load
({
            'domain':
APE.Config.domain,
            'server':
APE.Config.server,
            'identifier':
'chatdemo',
            'channel':
'test',
            'complete': function(ape)
{
                 shoutbox = new APE.Demo(ape);
            },
            'scripts': APE.Config.scripts //Scripts to load for APE
JSF
        });

* what does the identifier in the code above stand for?
* is it possible to start a connection without joining a channel. so
that the script only receives messages that are going directly to the
user?
* to join a channel, do i need to call this.core.join() or should i
use pipes? if pipes are the way to go, can you give me please a small
example on how to join a channel?
* can a user subscribe to multiple channels?

thank you very much in advance...it's fun to work with.

cheers marc

On May 28, 11:25 am, Nicolas Trani <[email protected]> wrote:
> Hi marc,
>
> I looked at little bit more your script, there are some problems :
>
>     * You always connect with user123 (so if you reload the webpage you
>       will have an error "NICK_USED");
>     * in postMessage, you need to remove the ev.stop(); as there is no
>       event to stop (in the shoutbox demo ev.stop(); was used because
>       the form was submited)
>     * And the error you have with mod controller it's because you try to
>       post a message to channel that didn't exist
>
> It looks like you are trying to send a message to a user with mod
> controller wich it's not possible for now. You just can send data to a
> channel.
>
> Cheers
>
> marc a écrit :
>
>
>
>
>
> > hi nicolas,
>
> > thanks for your quick feedback. i've took your html and tested it, but
> > it results in the same. i have the feeling, that the script never
> > comes to the point where it joins/creates the test channel. using the
> > controller module to send some messages also fails.
>
> >http://streaming.ape-server.local/?control&testpwd&test&POSTMSG&user1...
>
> > results in: ERR NOT_A_CHANNEL
>
> > to validate, that the streaming server is up and running, i've called
> > the following, which works.
> >http://streaming.ape-server.local/?script&it_works&anticache
>
> > thanks in advance,
>
> > cheers marc
>
> > On May 28, 2:21 am, Nicolas Trani <[email protected]> wrote:
>
> >> Hi marc,
>
> >> i just checked your code, it works! The create() function is called. I
> >> use the following HTML :http://pastie.org/492165
>
> >> Do you have a javascript error? What browser do you use? Can you also
> >> post your HTML? Thx.
>
> >> Cheers
>
> >> marc wrote:
>
> >>> hi guys,
>
> >>> first of all, ape is great and sounds very promising. after getting
> >>> all samples working, i'm now a bit confused about on how using the
> >>> javascript framework to build a simple send/receive app, like the
> >>> soutbox demo.
>
> >>> therefore i've modified the shoutbox example and stripped everything
> >>> out. now it looks like
>
> >>>http://pastebin.com/d6929a36d
>
> >>> but running the example in the browser does nothing more than sending
> >>> one post to the server and creating a session. the raw result is:
>
> >>> [
> >>> {"raw":"LOGIN","time":"1243464632","datas":
> >>> {"sessid":"e79f9f8fd8fe1885b813e9076903d7c1"}},
> >>> {"raw":"IDENT","time":"1243464632","datas":{"user":{"properties":
> >>> {"name":"user123"},"casttype":"uni"
> >>> ,"pubid":"4c6415943f8ad66e4d79dd69cc2f9563"}}}
> >>> ]
>
> >>> but the this.create() event handler funtion is never called. thats why
> >>> i'm not able to send any messages. what am i doing wrong?
>
> >>> thanks in advance,
>
> >>> cheers marc
>
> >> --
> >> Nicolas Trani - Développeur web
> >> Weelya - Improve the web
> >> 32 rue du faubourg boutonnet
> >> 34090 Montpellier
> >> Tel : 04 67 169 778http://www.weelya.com
>
> --
> Nicolas Trani - web engineer
> Weelya - Improve the web
> 32 rue du faubourg boutonnet
> 34090 Montpellier
> Tel: 04 67 169 778 - Fax: 09 57 91 99 91http://www.weelya.com
--~--~---------~--~----~------------~-------~--~----~
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/
-~----------~----~----~----~------~----~------~--~---

Reply via email to