public interface

WebSocketListener

com.ning.http.client.websocket.WebSocketListener
Known Indirect Subclasses

Class Overview

A generic WebSocketListener for WebSocket events. Use the appropriate listener for receiving message bytes.

Summary

Public Methods
abstract void onClose(WebSocket websocket)
Invoked when the WebSocket is close.
abstract void onError(Throwable t)
Invoked when the WebSocket is open.
abstract void onOpen(WebSocket websocket)
Invoked when the WebSocket is open.

Public Methods

public abstract void onClose (WebSocket websocket)

Invoked when the WebSocket is close.

public abstract void onError (Throwable t)

Invoked when the WebSocket is open.

Parameters
t a Throwable

public abstract void onOpen (WebSocket websocket)

Invoked when the WebSocket is open.