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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}
      ]
   }.