com.ning.http.client.websocket
Interface WebSocketListener

All Known Subinterfaces:
WebSocketByteListener, WebSocketPingListener, WebSocketPongListener, WebSocketTextListener
All Known Implementing Classes:
DefaultWebSocketListener

public interface WebSocketListener

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


Method Summary
 void onClose(WebSocket websocket)
          Invoked when the WebSocket is close.
 void onError(Throwable t)
          Invoked when the WebSocket is open.
 void onOpen(WebSocket websocket)
          Invoked when the WebSocket is open.
 

Method Detail

onOpen

void onOpen(WebSocket websocket)
Invoked when the WebSocket is open.

Parameters:
websocket -

onClose

void onClose(WebSocket websocket)
Invoked when the WebSocket is close.

Parameters:
websocket -

onError

void onError(Throwable t)
Invoked when the WebSocket is open.

Parameters:
t - a Throwable


Copyright © 2013. All Rights Reserved.