Annotation Interface ServerSentEventSource


Apply to Resource Methods to make them function as Server-Sent Event Sources.

See https://www.soklet.com/docs/server-sent-events for detailed documentation.

Author:
Mark Allen
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The Server-Sent Event Source GET URL that should be handled by this Resource Method.
  • Element Details

    • value

      The Server-Sent Event Source GET URL that should be handled by this Resource Method.

      The URL must start with a / character, e.g. /widgets/{widgetId}.

      Returns:
      the Server-Sent Event Source GET URL that should be handled by this Resource Method