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

[Bug]: The transformHandler function re-subscribes to events on ever chunk of data #116

Description

@benbrown

Hardware

Not Applicable

Connection Type

Serial

Firmware Version

2.4.x

Description

This line of code causes an event handler to be subscribed to an event. This occurs on every chunk of data that gets passed, which will likely cause a memory leak over time.

https://github.com/benbrown/meshtastic-js/blob/c6c26f1a153e9d7e5ca0a7bdd4cb8031cce6fff4/src/utils/transformHandler.ts#L16

This should happen outside of the actual chunk handler.

Relevant console output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions