Package 

Class EventParser

  • All Implemented Interfaces:

    
    public final class EventParser
    
                        

    Parses & Dispatches Server-Sent Events.

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      EventParser()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit process(Buffer data, Function1<EventParser.EventInfo, Unit> dispatcher) Push mode processing.
      • Methods inherited from class kotlin.Any

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EventParser

        EventParser()
    • Method Detail

      • process

         final Unit process(Buffer data, Function1<EventParser.EventInfo, Unit> dispatcher)

        Push mode processing.

        Parses complete events that have been made available up to the end of the provided data; saving any unprocessed data until the next invocation.

        Parameters:
        data - Latest data to process
        dispatcher - Handler for parsed events.