--
You received this message because you are subscribed to the Google
Groups "APE Project" group.
To post to this group, send email to ape-p...@googlegroups.com
To unsubscribe from this group, send email to
ape-project...@googlegroups.com
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/
Check this commit from a fork i have, it doesn't delete lines but rather tries to use a frequency in the json command instead than in the domain.
Hello, can you tell me which file and lines did you modified/delete please ?Thanks
--
Yes you could, do you see how the chl or challenge is send in every command, you just have to send the frequency value in the json variable freq instead of adding it to the domain.
So a command would look like:
[{cmd: "connect", chl:34, freq:11 ...}]
For example in the APE_JSF framework there is function called parseCmd() which builds the outgoing commad.
https://github.com/APE-Project/APE_JSF/blob/master/Source/Request/Request.js
In line 53 and 83 you could see it adds the challenge # or chl so you would add the frequency below that line
o.freq = the frequency #
To avoid the frequency to be added to the domain you would have to go in the source and edit every transport. You would be looking for a line like this.ape.options.frequency
In case of the websocket is on line 12 on the file
https://github.com/APE-Project/APE_JSF/blob/master/Source/Transport/Transport.WebSocket.js
If you manage to make this edits work you can tested it on the fork https://github.com/ptejada/APE_Server
But do note that the fork is not ready for prime time as it has a minor bug for the longpolling protocol. The websocket however works flawlesly,
good luck