1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actioncable/test/subscription_adapter
Sergey Ponomarev 723375147b Add ActionCable subscription connection identificator to PostgreSQL adapter
* You can distinguish connection among others with specific `application_name`

    ```sql
    SELECT application_name FROM pg_stat_activity;
    /*
        application_name
    ------------------------
    psql
    ActionCable-PID-42
    (2 rows)
    */
     ```

  * It's possible to customize connection identification with `id` option in `cable.yml`

    `ActionCable-PID-#{$$}` is the default value

  * Related tests refactoring

  * `ActionCable::Server#config.cable` is no mutated anymore inside Redis subscription adapter
2019-12-31 13:23:01 +03:00
..
async_test.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
base_test.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
channel_prefix.rb Allow passing custom config to ActionCable::Server::Base 2019-02-12 17:17:46 -05:00
common.rb Use assert_predicate and assert_not_predicate 2018-01-25 23:32:59 -05:00
inline_test.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
postgresql_test.rb Add ActionCable subscription connection identificator to PostgreSQL adapter 2019-12-31 13:23:01 +03:00
redis_test.rb Add ActionCable subscription connection identificator to PostgreSQL adapter 2019-12-31 13:23:01 +03:00
subscriber_map_test.rb Use frozen string literal in actioncable/ 2017-07-23 23:30:29 +03:00
test_adapter_test.rb Add Action Cable test adapter 2018-08-19 19:06:30 -04:00