aboutsummaryrefslogtreecommitdiffstats
path: root/lib/action_cable/channel
Commit message (Collapse)AuthorAgeFilesLines
* Share internal identifiers and message types with the JavaScript clientJavan Makhmali2015-11-061-5/+2
|
* Rename Subscription#reject! to Subscription#reject as there's only one ↵Pratik Naik2015-11-051-2/+2
| | | | version of the method
* Add some documentation explaining subscription rejectionPratik Naik2015-11-041-0/+16
|
* Fix a merge fail syntax issuePratik Naik2015-11-041-1/+1
|
* Merge branch 'master' into subscription-rejectionPratik Naik2015-11-043-34/+32
|\
| * Fixing subscription callbacksDiego Ballona2015-11-041-3/+6
| |
| * Merge pull request #69 from mieko/callbacksRafael Mendonça França2015-10-233-32/+27
| |\ | | | | | | | | | Use ActiveSupport::Callbacks for Channel subscription callbacks.
| | * Use ActiveSupport::Callbacks for Channel subscription callbacks.Mike A. Owens2015-08-243-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Rely on AS::Callbacks for callback handling. * Add before_subscribe, after_subscribe, before_unsubscribe and after_unsubscribe convenience methods * alias on_subscribe and on_unsubscribe to after_subscribe and after_unsubscribe, respectively. * Remove `subscribed` and `unsubscribed` from the callback chain: these methods are now executed as the subject of the callbacks. * Update portions of ActionCable to use the more specific callback names.
* | | Allow rejecting subscriptions from the channelPratik Naik2015-10-211-4/+26
|/ /
* | Make sure the subscription confirmaion is only sent out oncePratik Naik2015-10-191-2/+10
| |
* | Freeze the SUBSCRIPTION_CONFIRMATION_INTERNAL_MESSAGE valuePratik Naik2015-10-191-1/+1
| |
* | Send subscription confirmation from server to the client to avoid race ↵Pratik Naik2015-10-162-3/+31
| | | | | | | | | | | | | | | | | | | | conditions. Without this, it's very easy to send messages over a subscription even before the redis pubsub has been fully initialized. Now we delay calling the subscription#connected method on the client side until we receive a subscription confirmation message from the server.
* | Devolve blanket #require to reveal intent and responsibilityJeremy Daer2015-10-161-1/+3
| | | | | | | | | | | | | | | | * Move specific requires close to where they're needed. * Use the private active_support/rails dep to wrap up common needs like eager autoload and module delegation. * Use a single Rails engine rather than an engine and a railtie. * Prefer `AS::JSON.encode` to `Object#to_json`.
* | Websockets -> WebSocket spelling [ci skip]Jeremy Daer2015-10-151-1/+1
| |
* | Remove some excessive loggingPratik Naik2015-10-141-2/+0
| |
* | Better schedule pubsub subscribePratik Naik2015-10-091-1/+1
|/
* Clear out the streams when they are stopped. Otherwise we will keep trying ↵Lachlan Sylvester2015-08-111-1/+1
| | | | to stop them.
* Merge pull request #54 from lsylvester/require-to_paramKasper Timm Hansen2015-08-031-0/+2
|\ | | | | Move require of to_param to where it is needed
| * move the require of object/to_param to channel/broadcasting because that is ↵Lachlan Sylvester2015-08-021-0/+2
| | | | | | | | where it is needed.
* | Merge pull request #50 from lsylvester/fix-stream-for-documentationKasper Timm Hansen2015-08-021-1/+1
|\ \ | |/ |/| update docs for broadcast_to to pass a message.
| * update docs for broadcast_to to pass a message to broadcast.Lachlan Sylvester2015-08-021-1/+1
| |
* | Fixing some documentation, correcting grammar, and removing unnecessary ↵Jason Dew2015-07-301-5/+5
|/ | | | whitespace
* Merge pull request #34 from ↵Kasper Timm Hansen2015-07-294-8/+80
|\ | | | | | | | | lsylvester/add-broadcast_to-and-stream_for-methods-to-channel add broadcast_to and stream_for methods as per #26
| * add broadcast_to and stream_for methods as per #26Lachlan Sylvester2015-07-284-8/+80
| |
* | Improve channel actions dispatcher to allow inheritance/mixinsCristian Bica2015-07-231-2/+37
|/ | | | Fixes #14
* Add some more testsPratik Naik2015-07-121-1/+1
|
* Add automatic delegations from channel to connection identifiersDavid Heinemeier Hansson2015-07-111-0/+13
|
* update README to include creating the ApplicationCabel::ChannelLachlan Sylvester2015-07-091-10/+10
|
* Revert to perform_action language – we're already using process for the ↵David Heinemeier Hansson2015-07-081-1/+1
| | | | connection
* Mention the concern about long-lived and stale dataDavid Heinemeier Hansson2015-07-081-1/+4
|
* Document the remaining parts of the Channel setup.David Heinemeier Hansson2015-07-073-0/+54
|
* SpacingDavid Heinemeier Hansson2015-07-071-0/+1
|
* Explain action processingDavid Heinemeier Hansson2015-07-071-0/+32
|
* Allow actions not to accept the data argumentDavid Heinemeier Hansson2015-07-071-2/+11
|
* No need for this delegatorDavid Heinemeier Hansson2015-07-072-12/+8
|
* Remove the authorized check for nowDavid Heinemeier Hansson2015-07-071-25/+8
| | | | | We have the remote connections to immediately cut a connection when someone has been kicked off. Let’s lean on that for now.
* Add documentationDavid Heinemeier Hansson2015-07-071-2/+10
|
* Use process vs perform languageDavid Heinemeier Hansson2015-07-071-2/+2
|
* Starting the documentation processDavid Heinemeier Hansson2015-07-071-0/+26
|
* Go with process_action to match language from Action ControllerDavid Heinemeier Hansson2015-07-071-1/+1
|
* No need for this to be publicDavid Heinemeier Hansson2015-07-071-5/+5
|
* No need to use a channel_ prefix inside the channelDavid Heinemeier Hansson2015-07-071-4/+4
|
* Switch domain language from channel connect/disconnect to subscribe/unsubscribeDavid Heinemeier Hansson2015-07-071-9/+9
|
* SpacingDavid Heinemeier Hansson2015-07-071-0/+1
|
* Don't need a delegator for a single-use caseDavid Heinemeier Hansson2015-07-072-6/+1
|
* Removing unused matches? methodDavid Heinemeier Hansson2015-07-071-6/+0
| | | | | @lifo I couldn’t find any use of documentation for this, so removed it for now. Was it just for testing?
* StyleDavid Heinemeier Hansson2015-07-071-1/+1
|
* Extract periodic timers concernDavid Heinemeier Hansson2015-07-073-23/+40
|
* Bundle connect/disconnect callbacks together with all other subscribe callbacksDavid Heinemeier Hansson2015-07-071-2/+3
|
* Merge branch 'master' of github.com:basecamp/action_cableDavid Heinemeier Hansson2015-07-043-45/+42
|\