Skip to content
This repository was archived by the owner on Dec 31, 2025. It is now read-only.
This repository was archived by the owner on Dec 31, 2025. It is now read-only.

Reactive support for subscriptions #140

Description

@pepijno

Thanks for the awesome library!

I was wondering if support for reactive subscriptions can be added. For example, instead of doing

Subscription sub = sc.subscribe("foo", new MessageHandler() {
    public void onMessage(Message m) {
        ...
    }
}, /*SubscriptionOptions*/);

doing something like the following (using reactor core)

ReactiveSubscription sub = sc.subscribeReactive("foo", /*SubscriptionOptions*/);
Flux<Message> stream = sub.stream();

The above is just a possible example, I don't know what the best way of such an implementation would look like.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions