Andy Janata
76d9be8f1c
more constants instead of immediate strings.
...
add a wrapper around the request parameters so we can use our enum values as the parameter names.
2012-01-16 16:28:21 -08:00
Andy Janata
61451105b0
do not return error messages, only return the error code and let the client look up the error message. this could eventually allow for localization of the error messages (but not the rest of the client yet)
2012-01-16 14:33:58 -08:00
Andy Janata
9a281cd38f
use constants for long poll events, ajax request operation names, ajax response field names, and error codes
2012-01-12 21:36:31 -08:00
Andy Janata
8da78ebac7
move MessageType back inside QueuedMessage since the client doesn't need it
...
make converter to produce js enums out of java enums
make everything use the constants on both sides for ajax operation code and disconnect reason
move the handler update out of the subpackage that it generates into
make the enum update and handler update run at build
2012-01-12 20:05:39 -08:00
Andy Janata
a7cc7c8d36
messing around with the ajax stuff to make autocomplete work better
2012-01-12 17:05:09 -08:00
Andy Janata
9e8c46ec2f
make ajax requests come from a builder to work on removing constant strings
2012-01-12 14:25:04 -08:00
Andy Janata
bdf401c443
don't display ourselves connecting at the beginning
2012-01-12 13:07:19 -08:00
Andy Janata
c4210a3faa
properly invalidate sessions when ping timeout occurs so when the user comes back they'll get a new session
2012-01-12 13:07:05 -08:00
Andy Janata
3c391f23cd
add names list when connecting
2012-01-12 13:05:49 -08:00
Andy Janata
c66c08cd4f
we have to be able to deal with longpoll error data returned not in an array, so make it look like an array if it's an error
2012-01-06 16:49:43 -08:00
Andy Janata
eba02a35bd
add support for being able to return more than one event in a single long poll request, since the client will poll no more often than every half-second. this could have caused a rather large backlog of events to deliver if chat was active.
2012-01-06 16:43:40 -08:00
Andy Janata
8a45078d77
remove dead clients
...
refactor the injector out to the servlet context
2012-01-06 15:53:55 -08:00
Andy Janata
9508575949
log out button
2012-01-06 15:53:04 -08:00
Andy Janata
29d3ca9190
only scroll the log window if it was already scrolled to the bottom
2011-12-24 19:38:19 -08:00
Andy Janata
37cc770ed3
convert cah.ajax into an object to make things a little neater
2011-12-24 19:38:02 -08:00
Andy Janata
0183ca5357
- change register error message only showing up once instead of repeating every time you try and get an error. it probably should blank when you start typing again though
...
- pull the long polling handlers out to their own file like the ajax response handlers
- chat
2011-12-24 19:37:45 -08:00
Andy Janata
87c77993af
refactor the js code into several files. need to further refactor the ajax handlers, and make the server automatically assemble the list of files the client needs.
...
some sort of dependency ordering needs enforced too.
2011-12-22 18:48:20 -08:00
Andy Janata
5aacc0ac32
- add long polling support
...
- broadcast a message when a new user connects
- utilize the long polling to deliver the message to existing clients
2011-12-22 14:19:59 -08:00
Andy Janata
668f9fe87d
initial commit
2011-12-16 16:39:52 -08:00