Silk JS - Heartbeat Chat, Using short-polling and combining ajax requests
If there is interest I will spend some time and make the program more customizable otherwise I won't waste my time, so just let me know
There is an issue with the messaging system front end where if you were to set it to update every 2 seconds it would limit the user to only 1 message for that duration. Ideally it would be customizable in that the user would have their messages for those two seconds merged into on this reduces the amount of DB records and write the server has to do while still meeting the real time like effect. Since my default of 500ms is so fast I can use it to throttle the users ability to spam.
- Twitter Bootstrap
- Noty Notifications
It is currently setup for use with SilkJS by using the heartbeat.sjs file. Of course it would work with any back that can execute the commands given the data in the post.
- ASAP: Add a message que or tell users there are limits on how fast they can send messages and that the current one will not be proccessed
- Add finished callback so methods with a large amount of beats can execute callback when they finish so they can start up again with new parameters