Hi,

I am quite new to the APE project. I had issues when over 200 clients 
connected to the APE server. When the client connects to the server, it 
issues a "CONNECT", followed by a "joinChatRoom" call. On the server, the 
even handler for that call looks like this:

Ape.registerCmd("joinChatRoom", true, function(params, infos) {
var cr = params.chatRoomName;
var chan = Ape.getChannelByName(cr);

    if (!$defined(chan)) {
        chan = Ape.mkChan(cr);
}

    // This data structure stores all the information about the user.
    var userState = infos.user.getProperty("userState");
    if (!userState) {
userState = {
credentials: {
watchitoo: {},
twitter: {},
facebook: {},
guest: {}
}
};
    }

    infos.user.setProperty("userState", userState);
    infos.user.join(cr);

});


the server answer looks like this:
Ape.transport.read('[{"time":"1380574741","raw":"CHANNEL","data":{"users":[{"casttype":"uni","pubid":"294fa43b43c6b152333d7d255f5496a1","properties":{"userState":{"credentials":{"watchitoo":0,"twitter":0,"facebook":0,"guest":0}}},"level":1}],"pipe":{"casttype":"multi","pubid":"e70bff78a59dcb1524750a93cf7ce943","properties":{"name":"wqd040"}}}}]')

or parsed:

[
   
   1. {
      - "time":"1380574741",
      - "raw":"CHANNEL",
      - "data":{
         - "users":[
            1. {
               - "casttype":"uni",
               - "pubid":"294fa43b43c6b152333d7d255f5496a1",
               - "properties":{
                  - "userState":{
                     - "credentials":{
                        - "watchitoo":0,
                        - "twitter":0,
                        - "facebook":0,
                        - "guest":0
                     }
                  }
               },
               - "level":1
            }
         ],
         - "pipe":{
            - "casttype":"multi",
            - "pubid":"e70bff78a59dcb1524750a93cf7ce943",
            - "properties":{
               - "name":"wqd040"
            }
         }
      }
   }

]

As you can see, the server send the list of all connected clients, How can 
i stop the server from sending this list?

The problem is that once over 200 clients connected, the server sends a 
huge list of current users, and for some reason attach another response to 
it,  looking something like:
Ape.transport.read('......')Ape.transport.read('.....')Ape.transport.read('.......')

which cause the the ape client to fail on  Uncaught SyntaxError: Unexpected 
identifier , since it fails to execute the response. 

I would appreciate any help as I am really stuck... 



-- 
-- 
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.

Reply via email to