typewriter icon indicating copy to clipboard operation
typewriter copied to clipboard

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

Open tobad357 opened this issue 2 years ago • 2 comments

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/

tobad357 avatar Dec 17 '22 03:12 tobad357

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.

oscb avatar Jan 09 '23 23:01 oscb

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

tobad357 avatar Jan 12 '23 03:01 tobad357