diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2018-12-05 14:29:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-05 14:29:52 -0500 |
commit | d9816546494f66e76bd5012a91b872dc2096a06c (patch) | |
tree | 152ca7fc5496aedffeea9633c2c6a71a2c0fbfd3 /actioncable/lib/action_cable.rb | |
parent | 884310fdd031ed8121944f9ea07c8b7723c4e6b6 (diff) | |
parent | 58dbc1c2ed0e372d9cae4c9e3baebb679a726dc3 (diff) | |
download | rails-d9816546494f66e76bd5012a91b872dc2096a06c.tar.gz rails-d9816546494f66e76bd5012a91b872dc2096a06c.tar.bz2 rails-d9816546494f66e76bd5012a91b872dc2096a06c.zip |
Merge pull request #34194 from staugaard/staugaard/actioncable_unauthorized
Stop trying to reconnect on unauthorized cable connections
Diffstat (limited to 'actioncable/lib/action_cable.rb')
-rw-r--r-- | actioncable/lib/action_cable.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/actioncable/lib/action_cable.rb b/actioncable/lib/action_cable.rb index d261d4112e..cb9dfa2268 100644 --- a/actioncable/lib/action_cable.rb +++ b/actioncable/lib/action_cable.rb @@ -33,10 +33,16 @@ module ActionCable INTERNAL = { message_types: { welcome: "welcome", + disconnect: "disconnect", ping: "ping", confirmation: "confirm_subscription", rejection: "reject_subscription" }, + disconnect_reasons: { + unauthorized: "unauthorized", + invalid_request: "invalid_request", + server_restart: "server_restart" + }, default_mount_path: "/cable", protocols: ["actioncable-v1-json", "actioncable-unsupported"].freeze } |