* feat(tracker): update message schema with BatchMetadata; separate message-related responsibilities; add message size * chore(docker): removing edge busybox, as the main repo updated * feat(backend): updated message protocol templates * feat(backend): added support of message size * feat(backend): implemented iterator for new message protocol (with message size) Co-authored-by: Alex Kaminskii <alex@openreplay.com>
15 lines
507 B
Text
15 lines
507 B
Text
// Auto-generated, do not edit
|
|
|
|
import * as Messages from '../../common/messages.gen.js'
|
|
export { default } from '../../common/messages.gen.js'
|
|
|
|
<% $messages.select { |msg| msg.tracker }.each do |msg| %>
|
|
export function <%= msg.name %>(
|
|
<%= msg.attributes.map { |attr| "#{attr.name.camel_case}: #{attr.type_js}," }.join "\n " %>
|
|
): Messages.<%= msg.name %> {
|
|
return [
|
|
Messages.Type.<%= msg.name %>,
|
|
<%= msg.attributes.map { |attr| "#{attr.name.camel_case}," }.join "\n " %>
|
|
]
|
|
}
|
|
<% end %>
|