Skip to content

Switch to something simpler for subscription storage #102

@lawrence-forooghian

Description

@lawrence-forooghian

In 392fae3 I tried to be clever and treat the subscription storage as part of the mutable state (i.e. by making it a struct) but this got complicated because it needs to be able to update itself later (when the user unsubscribes), leading to a lot of unpleasant boilerplate. Turn it into a class instead (e.g. just copy EventEmitter from ably-swift).

┆Issue is synchronized with this Jira Task by Unito

Metadata

Metadata

Assignees

No one assigned

    Labels

    code-qualityAffects the developer experience when working in our codebase.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions