Module io.jooby
Package io.jooby

Interface WebSocket.OnError

Enclosing interface:
WebSocket

public static interface WebSocket.OnError
On error callback. Generated when unexpected error occurs.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Error callback, let you listen for exception.
  • Method Details

    • onError

      void onError(@NonNull WebSocket ws, @NonNull Throwable cause)
      Error callback, let you listen for exception. Websocket might or might not be open.
      Parameters:
      ws - Websocket.
      cause - Cause.