1. 01 7月, 2016 1 次提交
  2. 02 6月, 2016 1 次提交
  3. 21 5月, 2016 1 次提交
  4. 18 4月, 2016 1 次提交
  5. 05 4月, 2016 1 次提交
    • D
      Added protocol negotiation · cbd15da0
      Daniel Rhodes 提交于
      This is primarily for backwards compatibility for when
      or if the protocol is changed in future versions.
      
      If the server fails to respond with an acceptable
      protocol, the client disconnects and disables
      the monitor.
      cbd15da0
  6. 31 3月, 2016 1 次提交
    • J
      Cable message encoding · b168eb58
      Jeremy Daer 提交于
      * Introduce a connection coder responsible for encoding Cable messages
        as WebSocket messages, defaulting to `ActiveSupport::JSON` and duck-
        typing to any object responding to `#encode` and `#decode`.
      * Consolidate encoding responsibility to the connection. No longer
        explicitly JSON-encode from channels or other sources. Pass Cable
        messages as Hashes to `#transmit` and rely on it to encode.
      * Introduce stream encoders responsible for decoding pubsub messages.
        Preserve the currently raw encoding, but make it easy to use JSON.
        Same duck type as the connection encoder.
      * Revert recent data normalization/quoting (#23649) which treated
        `identifier` and `data` values as nested JSON objects rather than as
        opaque JSON-encoded strings. That dealt us an awkward hand where we'd
        decode JSON strings… or not, but always encode as JSON. Embedding
        JSON object values directly is preferably, no extra JSON encoding,
        but that should be a purposeful protocol version change rather than
        ambiguously, inadvertently supporting multiple message formats.
      b168eb58
  7. 25 3月, 2016 1 次提交
  8. 21 3月, 2016 1 次提交
    • J
      Gracefully handle disconnected clients · 4f8a8e2c
      Jeremy Daer 提交于
      We'll get `Errno::ECONNRESET` if the client forcibly disconnected.
      Just close the socket rather than raising the exception.
      
      Handle other errors in `ClientSocket#write`, too, mirroring the Faye
      error handling which swallows all `StandardError` on write.
      4f8a8e2c
  9. 02 3月, 2016 2 次提交
  10. 01 3月, 2016 3 次提交
  11. 26 2月, 2016 1 次提交
  12. 25 2月, 2016 1 次提交
  13. 23 2月, 2016 1 次提交
  14. 19 2月, 2016 1 次提交
    • J
      Fix `unsubscribed` server side behavior · cefcc0f6
      Jon Moss 提交于
      Before this commit, the `unsubscribed` callbacks in Action Cable server
      side channels were never called. This is because when a WebSocket
      "goodbye" message was sent from the client, the Action Cable server
      didn't properly clean up after the now closed WebSocket. This means that
      memory could possibly skyrocket with this behavior, since part of this
      commit is to properly remove closed subscriptions from the global
      subscriptions hash. Say you have 10,000 users currently connected, and
      then all 10,000 disconnect -- before this patch, Action Cable would
      still hold onto information (and Ruby objects!) for all of these now
      dead connections.
      cefcc0f6
  15. 18 2月, 2016 1 次提交
    • J
      Full Action Cable documentation read through · 05088b62
      Jon Moss 提交于
      This PR checks all active Action Cable documentation for typos and other
      fixes. It aims to make sure that when Rails 5 is released, that the
      Action Cable docs are up to snuff with the other documentation included
      with Rails.
      
      [ci skip]
      05088b62
  16. 13 2月, 2016 1 次提交
  17. 11 2月, 2016 1 次提交
  18. 30 1月, 2016 3 次提交
  19. 27 1月, 2016 2 次提交
  20. 24 1月, 2016 2 次提交
  21. 19 1月, 2016 3 次提交
  22. 16 1月, 2016 2 次提交
  23. 09 1月, 2016 1 次提交
  24. 06 1月, 2016 1 次提交
    • M
      Move async execution from celluloid to concurrent-ruby · 547713b4
      Mike Perham 提交于
      This removes 8 runtime gem dependencies from Rails:
      
      ```
      Using hitimes 1.2.3
      Using timers 4.1.1
      Using celluloid-essentials 0.20.5
      Using celluloid-extras 0.20.5
      Using celluloid-fsm 0.20.5
      Using celluloid-pool 0.20.5
      Using celluloid-supervision 0.20.5
      Using celluloid 0.17.2
      ```
      547713b4
  25. 25 12月, 2015 1 次提交
  26. 18 12月, 2015 1 次提交
  27. 17 12月, 2015 1 次提交
  28. 14 12月, 2015 1 次提交