Skip to content

Would it be possible to add a function to emit to the whole room, including the sender of the original event? #622

@Miodec

Description

@Miodec

Looking at the docs, you can only emit to the sender, or broadcast to the room excluding the sender. Would it be possible to add something like withRooms(id).emit()?

I realise i can probably do

client.emit()
withRooms(id).broadcast()

but having to remember to call both could be prone to errors.

What do you think?

Image

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