In my pusher initializer, I specified the cluster that I'd be user.
On the client side, when I have to create the Pusher object in javascript, I would like to access the cluster specified on the server side.
const pusher = new Pusher('<%= Pusher.key %>', {
cluster: '', // want to do '<%= Pusher.cluster %>', instead of re-specifying the cluster
encrypted: true,
})
It is possible to access Pusher.host, but for the above client side configuration, I need the cluster.
Ideally, we can also access Pusher.encrypted, so the client side configuration can pull directly from the PusherClient.
In my pusher initializer, I specified the cluster that I'd be user.
On the client side, when I have to create the Pusher object in javascript, I would like to access the cluster specified on the server side.
It is possible to access
Pusher.host, but for the above client side configuration, I need the cluster.Ideally, we can also access
Pusher.encrypted, so the client side configuration can pull directly from the PusherClient.