public interface

WebSocketByteListener

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

Class Overview

A WebSocketListener for bytes

Summary

Public Methods
abstract void onFragment(byte[] fragment, boolean last)
Invoked when bytes of a fragmented message are available.
abstract void onMessage(byte[] message)
Invoked when bytes are available.
[Expand]
Inherited Methods
From interface com.ning.http.client.websocket.WebSocketListener

Public Methods

public abstract void onFragment (byte[] fragment, boolean last)

Invoked when bytes of a fragmented message are available.

Parameters
fragment byte[] fragment.
last if this fragment is the last in the series.

public abstract void onMessage (byte[] message)

Invoked when bytes are available.

Parameters
message a byte array.