@mojojs/core
    Preparing search index...

    Function parseEvent

    • Parse Server-Sent Event, returns the event (or null if no complete event was found) and the remaining buffer. Note that this function is EXPERIMENTAL and might change without warning!

      Parameters

      • buffer: string

      Returns [SSEEvent | null, string]