Skip to content

Subscribe to specific IRC messages #4

Description

@DrFrankenstein

Who: Library users
What: Create observables that emit on specific IRC messages
Why: So that we don't always have to subscribe to messages() | filter([](m) { return m.command == "COMMAND"; }). Running those filters on every message can become heavy quickly (O(n); n: amount of subscribers).
Points: 5

This is not on a milestone yet, as performance impact hasn't yet been asserted.

Acceptance Criteria

  • I can subscribe to something like session.messagesOfType("PRIVMSG").
  • That observable would emit whenever a PRIVMSG is received.
  • Those observables are kept track of somewhere and get purged when no one's subscribed to a message anymore
  • Support for both commands and numerics.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestircIssues targeting the IRC library

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions