Hi,

First of all I would like to thank you for your effort on this module,

I just installed it and it seems that handler.php causes my pings to be >2 seconds.
I isolated problem to be this line:
$chat = new phpFreeChat($params);

Do you know why it takes so long and if it can be modified somehow to speed it up? In demo I have pings similar to 25ms.

Thank you in advance,
Regards,
bloto

Comments

bloto’s picture

Hmm it seems I have this ping due to file.class.php container which has sleep inside
$timetowait = 2;

So the question is why isn't this code called in demo?

polskikrol’s picture

Had the same exact problem and set the parameter to 0. Issues with speed and missing messages seem to have gone away.

Lee-vit-Over’s picture

Hi polskikrol, forgive my ignorance, but what parameter did you set to 0 ? and in the settings, or in the code, and if code - where, please ? THANK YOU!

polskikrol’s picture

@Lee-vit-Over
$timetowait = 0; in file.class.php