Ajax Chatbox is allowed?

Status
Not open for further replies.

otakupag

New Member
Messages
4
Reaction score
0
Points
1
I'm planning to put one chatbox in my site for the members' conversation. The chatbox was coded by me and I used ajax for realtime updates. There is 5 seconds delay on refreshing the chat using ajax. Is it allowed in x10Hosting? Or should I add more delay seconds, or should I remove it?
 

essellar

Community Advocate
Community Support
Messages
3,295
Reaction score
227
Points
63
It's allowed, but it may get your site temporarily suspended from time to time for resource usage. That depends on the update rate and the amount of traffic you have. You may (well, will probably) find that five seconds is too short an interval even with just a couple of users, and there will come a point where the delay you add sort of makes the chat feature useless and a message + notification feature would be better (it has lower user expectations of immediacy). As long as you can handle the traffic without tripping the resource limits, you're free to use it.
 
Status
Not open for further replies.
Top