Skip to content

bindings are overwritten  #5

@dpreussler

Description

@dpreussler

looks like there is a bug in off method of Channel

    public fun off(event: String, ref: Int? = null) {
        // Remove any subscriptions that match the given event and ref ID. If no ref
        // ID is given, then remove all subscriptions for an event.
        this.bindings = bindings
                .filter { it.first == event && (ref == null || ref == it.second) }
                .toMutableList()
    }

If I see this correctly, this removed everything from list that doenst match and not remove the one item :)

This prevents me from seeing any messages.
Maybe I am doing sth wrong but that is what debugging showed me :)

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