Commit graph

88 commits

Author SHA1 Message Date
Gered 9d314c4d88 super nitpicky code formatting
i apologize to anyone looking at this commit and wondering why i would
do this, but all these little "off" formatting things have been bugging
me all day while looking at this code. i simply had to do something.
2016-05-08 19:20:28 -04:00
Gered 4e63631854 update disconnection reason strings to be a bit more descriptive 2016-05-08 19:03:31 -04:00
Gered 337b1faf27 update chat-demo 2016-05-08 19:01:24 -04:00
Gered 49409cac62 add server-side helper functions 2016-05-08 19:01:08 -04:00
Gered 0fb68755fe rename 2016-05-08 19:00:45 -04:00
Gered da2b5d94b2 update how browserchannel server-side application event handling works
up until now, a single event handler "on-session" could be provided to
wrap-browserchannel which would be invoked each time a new client
session was created. it was then the application's responsibility to
register listeners for close/receive events inside this on-session event
handler.

this was kind of clunky honestly. basically every application would want
to use all of these events, so why not reduce the boilerplate needed?

this change makes it so a map of event handlers (:on-open, :on-close and
:on-receive) can be passed under wrap-browserchannel's options map (in
the key :events). this makes it simpler for an application to set up
browserchannel event handlers, and it works in basically the exact same
way as the clientside event handler registration works right now
2016-05-08 18:44:54 -04:00
Gered ecb66421b0 rename clj-browserchannel-server as it now also includes cljs stuff 2016-05-08 18:00:42 -04:00
Gered a58f6934c7 update chat-demo to use an anti-forgery token to demo how to set it up 2016-05-08 17:59:31 -04:00
Gered c18f295018 simplify stuff a bit 2016-05-08 15:51:51 -04:00
Gered a4b2e14897 add clojurescript client-side browserchannel api 2016-05-08 14:34:22 -04:00
Gered 161e7c3999 remove unneeded requires 2016-05-08 12:42:41 -04:00
Gered 7ada1c27c7 make immutant a provided dependency for the async adapter library 2016-05-08 12:05:28 -04:00
Gered b61be5ae21 some namespace renaming to keep things consistent (nitpicky...) 2016-05-08 11:56:33 -04:00
Gered 613c75953b update some project names and links to refer to this forked repo
project name updates are most important as i'll be deploying to clojars
and don't want any conflicts with the existing project
2016-05-07 17:24:35 -04:00
Gered 8e503e44e1 add immutant adapter project README.md 2016-05-07 17:12:08 -04:00
Gered 3a196a3ff2 add extra example code to show how to enable debug logging client-side 2016-05-07 17:10:08 -04:00
Gered 72c886e772 add immutant adapter support to the chat-demo 2016-05-07 16:58:36 -04:00
Gered 1ade049b2b add clj-browserchannel-immutant-adapter 2016-05-07 16:52:22 -04:00
Gered 02b2f551e1 forgot to bump up dependency version 2016-05-07 16:45:06 -04:00
Gered 722776ed2e bump versions 2016-05-07 16:39:54 -04:00
Gered 87f8b8a766 update chat-demo README.md 2016-05-07 16:36:17 -04:00
Gered 47790b3f92 update gitignore, add lein aliases to chat-demo 2016-05-07 16:36:03 -04:00
Gered 1fbf989bea shouldn't have been committed 2016-05-07 16:34:36 -04:00
Gered 0e76a0347c fix chat-demo
- dependencies updated
- removed old netty adapter code
- generally converted it into something more resembling a modern clojure
  web app
2016-05-07 16:20:54 -04:00
Gered 03c4abba20 remove clj-browserchannel-netty-adapter
it was horribly out of date, didn't even build (broken dependencies),
and when i briefly looked into fixing it up, i quickly realized that
aleph/netty has changed quite a bit in the few years since this adapter
was last touched. i really don't know anything about aleph/netty as
i've never used it so i don't think it's a good idea for me to be trying
to update this.

ultimately i think removing this is the best option for now rather then
keeping it around in a severly out of date and broken state.
2016-05-07 16:19:02 -04:00
Gered 7f67fbc352 update dependencies 2016-05-07 16:16:08 -04:00
Gered ff75105be0 cleanup .gitignores 2016-05-07 14:02:21 -04:00
Alexander K. Hudek 68d2ebc633 Improve memory efficiency by writing more frequently to back-channel. 2015-08-13 02:26:31 -04:00
Alexander Hudek 68440ee178 Ensure order of messages is preserved. 2015-08-10 19:37:25 -04:00
Dave Della Costa 34a961658b Merge pull request #7 from gered/master
pass incoming browserchannel message request maps to listeners
2015-01-21 12:48:05 +09:00
Gered ce554b8f63 pass incoming browserchannel message request maps to listeners 2014-12-19 16:58:39 -05:00
Alexander K. Hudek ff20442d0f Previous agent-restart didn't work as expected. Using agent-mode instead. 2014-12-08 01:40:03 -05:00
Alexander K. Hudek 8a0063040f Added error handling to agents. 2014-10-07 01:29:03 -04:00
Alexander K. Hudek 2f34c6c39a Bumped for release. 2014-10-05 00:55:08 -04:00
Alexander K. Hudek 5a2f8b97fc Bump ring-servlet. 2014-10-04 22:41:51 -04:00
Alexander K. Hudek 0a483b802d Updated jetty adapter to newest ring and removed all reflection warnings. 2014-10-04 22:15:44 -04:00
Alexander K. Hudek c59c58aa6f Bumped ring and json versions, removed reflection warnings. 2014-10-04 21:59:14 -04:00
Alexander K. Hudek 2b940314ca Merge branch 'master' of github.com:diligenceengine/clj-browserchannel 2014-09-16 01:03:34 -04:00
Dave Della Costa 11f80ef06c bump ring to 1.2.2 2014-09-16 14:03:34 +09:00
Alexander K. Hudek f1d4c91290 Merge branch 'master' of github.com:diligenceengine/clj-browserchannel 2014-09-16 01:01:48 -04:00
Dave Della Costa c196db269e bump ring to 1.2.2 2014-09-16 14:01:19 +09:00
Dave Della Costa 539565f37d bump ring to 1.2.2 2014-09-16 14:00:31 +09:00
Dave Della Costa 4331e171ee upgrades data.json to 0.2.4. Still using deprecated function json-str, will port at a later date. 2014-04-08 13:03:48 +09:00
Alexander K. Hudek a168be7336 Correctly close chunked backchannel by sending zero length data. 2014-04-04 21:19:52 -04:00
Alexander K. Hudek 6b83c2ae36 Increased the keep alive timer per google recommendation. Fixed map parsing error when pairs are not in map order. 2013-12-08 22:11:28 -05:00
Alexander K. Hudek 2a36493281 Update async adapter to use actual async ssl instead of blocking. Added more options. 2013-10-08 20:15:30 -04:00
Alexander K. Hudek 312ae15712 Updated dependencies. 2013-09-30 20:58:35 -04:00
Dave Della Costa 7e30a2b577 default 8443 2013-09-13 04:05:24 -04:00
Dave Della Costa 6c8f9e49d2 adds SSL handling 2013-09-05 14:10:59 +09:00
thegeez 4e03d0d8cb Dusting off test 2013-07-31 21:36:34 +02:00