Skip to content

A way to CLIENT SETNAME when using pubsub #3708

@ptman

Description

@ptman

Expected Behavior

sub := rdb.Subscribe(ctx, "chan")
sub.ClientSetName("subscriber"+id)

Current Behavior

*redis.PubSub has no suitable method

Possible Solution

*redis.PubSub uses a single connection, but there's no .Do() or .Conn() for accessing that connection. Or an option for setting the client name when subscribing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions