Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

is there anything I can do to make the broadcasting of events faster / simultaneous ? #585

@vesper8

Description

@vesper8

I'm working on a silent disco prototype and it's crucial that clients be as close to perfectly in sync as possible

I'm approaching the problem by making use of websockets.. although I'm not yet sure if this is the best solution

Currently I have a test where I trigger a broadcast from a laravel back-end and up to 5 clients that are subscribed to a public channel (using this package) will receive the instruction to play the song

I'm noticing that the 5 clients start to play the song with a latency of 1 - 2 seconds

In the Dashboard, I can only see that there is one event going out. I kind of understand the flow.. you have 5 subscribers, you push an event on a channel and all subscribers are broadcasted the message

But is this broadcast done one-after-the-other ? Or is it all at once? If the former.. how can I make it all at once? Is it a matter of increasing the number of workers in the queue config of wherever laravel-websockets is installed? If not.. would you mind explaining how I might make it possible for lots of people to receive the broadcast all at once or as close to all at once as possible?

Many thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions