1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/lib/assets/javascripts/cable.coffee
2015-10-21 13:47:48 -05:00

11 lines
259 B
CoffeeScript

#= require_self
#= require cable/consumer
@Cable =
PING_IDENTIFIER: "_ping"
INTERNAL_MESSAGES:
SUBSCRIPTION_CONFIRMATION: 'confirm_subscription'
SUBSCRIPTION_REJECTION: 'reject_subscription'
createConsumer: (url) ->
new Cable.Consumer url