Skip to content

Request: attribute accessor to the cluster config for Pusher Client #135

@vsai

Description

@vsai

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions