Skip to content

Echo subscription driver: Bug, Inconsistency, Missing documentation #1724

@ssi-anik

Description

@ssi-anik

Describe the bug
I was trying to figure out the subscription with the echo driver. I found the following things are wrongly done.

  • Package generates a unique private channel to listen to as named private-*
    public static function uniqueChannelName(): string
    {
    return 'private-lighthouse-'.Str::random(32).'-'.time();
    }

But when broadcasting, it then broadcasts to a presence channel. which prepends presensce- to the channel making presence-private-lighthouse-*. So, it should always be handled as a presence channel?

public function broadcastOn(): PresenceChannel
{
return new PresenceChannel($this->channel);
}

Lighthouse Version: * v5.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn error within Lighthouse

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions