mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
11 lines
259 B
CoffeeScript
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
|