Interface SseConnection


@JsType(isNative=true, name="ng.SseConnection", namespace="<global>") public interface SseConnection
Managed SSE connection object returned by $sse. Provides a safe way to close the connection and stop reconnection attempts.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Manually close the SSE connection and stop all reconnect attempts
    void
    Manually restart the SSE connection.
  • Method Details

    • close

      void close()
      Manually close the SSE connection and stop all reconnect attempts
    • reconnect

      void reconnect()
      Manually restart the SSE connection.