Skip to content

Allow cluster to be set when creating new client #9

@wmonk

Description

@wmonk

Hey!

I managed to get my pusher client working by using from_url and specifying something like:

let mut pusher = Pusher::from_url("http://<key>:<secret>@api-<cluster>.pusher.com/apps/<app_id>").finalize();

Currently we are also using the python version of this module, which allows you to set the cluster. It would be good to document how to get this setup - like the above, or to expose a method to set it on the PusherBuilder struct.

Not sure if the way i've implemented above is the desired way, or if it just hasn't been a requirement yet, but it seems to be required functionality in the other pusher clients.

Hope this make sense!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions