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%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
-spec generate (list(any())) -> {list(any())}.
generate (EncodedClientUpdate) ->
   io:format("~nSending timeline:~n~p~n", [EncodedClientUpdate]),
   {
      [
         {<<"msg">>, <<"set_timeline">>},
         {<<"cnt">>, EncodedClientUpdate}
      ]
   }.