Skip to content

feature request: Connection ID groups #65

@majestrate

Description

@majestrate

oxend rpc code, pysogs and many other code bases would greatly benefit from adding / removing connection ids into a group and being able to send to the group and everyone in the group gets that message sent to them.

Something akin to:

struct BuddyGroup
{
    std::unordered_set<ConnectionID> _buddies;
    
    void add(ConnectionID);
    void remove(ConnectionID);
    
    template<typename Args>
    void send(Args && ...) const; // blah blah blah send to all the buddies
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions