Interface WebTransportReconnectEvent


@JsType(isNative=true, name="ng.WebTransportReconnectEvent", namespace="<global>") public interface WebTransportReconnectEvent
Event passed to WebTransport reconnect and renegotiation hooks.
  • Method Summary

    Modifier and Type
    Method
    Description
     
    double
    One-based reconnect attempt count for this connection.
    Stable managed connection whose native `transport` was reopened.
    Error or close reason that caused the reconnect attempt, when available.
    URL used to open the replacement WebTransport session.
    void
    setAttempt(double attempt)
    One-based reconnect attempt count for this connection.
    void
    Stable managed connection whose native `transport` was reopened.
    void
    Error or close reason that caused the reconnect attempt, when available.
    void
    URL used to open the replacement WebTransport session.
  • Method Details

    • create

      @JsOverlay static WebTransportReconnectEvent create()
    • getAttempt

      @JsProperty double getAttempt()
      One-based reconnect attempt count for this connection.
    • getConnection

      @JsProperty WebTransportConnection getConnection()
      Stable managed connection whose native `transport` was reopened.
    • getError

      @JsProperty Object getError()
      Error or close reason that caused the reconnect attempt, when available.
    • getUrl

      @JsProperty String getUrl()
      URL used to open the replacement WebTransport session.
    • setAttempt

      @JsProperty void setAttempt(double attempt)
      One-based reconnect attempt count for this connection.
    • setConnection

      @JsProperty void setConnection(WebTransportConnection connection)
      Stable managed connection whose native `transport` was reopened.
    • setError

      @JsProperty void setError(Object error)
      Error or close reason that caused the reconnect attempt, when available.
    • setUrl

      @JsProperty void setUrl(String url)
      URL used to open the replacement WebTransport session.