Skip to content

[feature] Add support for client-side filter expressions during subscription #1014

@quantum-01

Description

@quantum-01

I'd like to propose adding support for clients to pass an additional filter dictionary when subscribing to a channel/topic.

The core need is this: for each message published to that topic, the Centrifugo server should be able to evaluate a filter expression defined by the client at subscription time. Only if the expression evaluates to true for a given message should that message be delivered to the subscribing client.

This filtering should occur on the server side to efficiently reduce unnecessary message traffic. A suggested implementation approach is to leverage the CEL (Common Expression Language) specification. CEL is well-suited for this type of secure, runtime-evaluated expression logic.

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