Skip to content

Request: make onError a callback in Papplet #19

@b4r7

Description

@b4r7

Hi Alexandrainst,

Thanks for the library, it made my day a bit easier!

I was wondering if you could update the library to expose the onError as a callback?

I'm trying to get the connection to a reliable point with proper user feedback and can't really do that without the error information.

Seems like a quick fix for you, and that way I can implement my own error handling for when the host is unreachable.

@OnWebSocketError
	public void onError(Throwable cause) {
		System.out.printf("onError(%s: %s)%n",cause.getClass().getSimpleName(), cause.getMessage());
		cause.printStackTrace(System.out);

	}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions