anchor.diff:              end
       end.
   
  -event(#{<<"id">> := Id, <<"status">> := <<"stop">>}, State) ->
  +
  +process_events(Events, State) ->
  +    case binary:split(Events, <<"\n">>) of
  +        [Event, Remainder] ->
  +            process_events(Remainder,
  +                           event(jsx:decode(Event, [return_maps]), State));
  +
  +        [Partial] ->
  +            State#{partial => Partial};
  +
  +        [] ->
  +            State#{partial => <<>>}
  +    end.
  +
  +event(#{<<"id">> := Id,
  +        <<"time">> := Time,
  +        <<"status">> := <<"stop">>},
  +      #{start_time := StartTime} = State) when Time > StartTime ->
       unregister_container(Id),
       State;
   
  -event(#{<<"id">> := Id, <<"status">> := <<"start">>},
  +event(#{<<"id">> := Id,
  +        <<"time">> := Time,
  +        <<"status">> := <<"start">>} = Event,
         #{host := Host,
           port := Port,
           cert := Cert,
  -        key := Key} = State) ->
  +        start_time := StartTime,
  +        key := Key} = State) when Time > StartTime ->
   
       URL = binary_to_list(iolist_to_binary(["https://",
                                              Host,
  
positive.code:                                        State)
              end;
  
          {error, Reason} ->
              error_logger:error_report([{module, ?MODULE},
                                         {line, ?LINE},
  
negative.code:                 {ok, Pid} ->
                      {ok, #{docker => Pid,
                             monitor => monitor(process, Pid),
                             partial => <<>>,
                             host => Host,
                             port => Port}};
  
  