Closed malrase closed 9 years ago
Hey @malrase, thanks for the PR, this shouldn't actually be required though. You could use the key name as a string in the object if it has dashes.
PUSHER_SUBSCRIPTIONS: {
"presence-messages": ['member_added'],
}
Sigh, I'm an idiot.
Thanks for your kind reply!
In some cases, Pusher requires a channel name that includes a dash – for example in
presence-
orprivate-
channels. Due to ember-cli being very strict with JavaScript syntax, it is not possible to use a dash in the channel names when configuring yourPUSHER_SUBSCRIPTIONS
.To get around this, we allow the
PUSHER_OPTS
option ofdasherizeChannel
. When set to true, the channel name inPUSHER_SUBSCRIPTIONS
is dasherized. For instance, this is how you would build a simple presence controller.Added tests and updated the README to include this option.