Skip to content
This repository was archived by the owner on Oct 26, 2026. It is now read-only.
This repository was archived by the owner on Oct 26, 2026. It is now read-only.

Is it possible to set custom messageId with the generated client? #279

Open

Description

@tobad357

We have a need to set our own messageId for de-duplication purposes but can't see an obvious way to set it when using the generated client?

messageId as per https://segment.com/docs/connections/spec/common/

Activity

  1. oscb commented on Jan 9, 2023

    @oscb
    Contributor

    It depends on what library you are generating the client for (AJS, Node, iOS). Most of them have a way to change the message data.

    Typewriter's client is just a wrapped client with convenience methods of the actual library, but you can still access the actual library's methods.

  2. tobad357 commented on Jan 12, 2023

    @tobad357
    ContributorAuthor

    @oscb Would it be possible to extend TrackMessage with messageId?: string to allow setting it with the convenience methods

  3. Arizard commented on Mar 18, 2026

    @Arizard

    bumping this, had to re-add it.

    I'm not confident there's anyone around to review though.

    maybe forking is a better approach

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