Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Ajax short polling chat that combines multiple callbacks into a single request
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
css
img
js
License.txt
README.md
chatroom.sjs
chatroomajax.sjs
heartbeat.sjs

README.md

Silk JS - Heartbeat Chat, Using short-polling and combining ajax requests


Screenshot

Interest

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

Issues

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.

Dependencies

  • jQuery
  • Twitter Bootstrap
  • Noty Notifications

Setup

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.


    TODO:

  • 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
Something went wrong with that request. Please try again.