         {event, rest}
       {line, rest} ->
         event = process_line(line, event)
-        parse(rest, event)
+        do_parse(rest, event)
     end
   end
 

  end

  @doc """
  Parse an event from text stream.

  ## Examples
  *In these examples this module has been aliased to `SSE`.

      iex> SSE.parse("data: This is the first message\\n\\n")
      {%SSE{lines: ["This is the first message"]}, ""}

  ```

  A living standard is available from [WHATWG](https://html.spec.whatwg.org/#server-sent-events).

  The contents of a server-sent-event are:

  | **type** | The type of an event |
  | **lines** | The data contents of the event split by line |
  | **id** | Value to send in `last-event-id` header when reconnecting |
  | **retry** | Time to wait before retrying connection in milliseconds |
  | **comments** | Any lines from original block that were marked as comments |
  """

  @new_line ~r/\R/
