Modifier and Type | Field and Description |
---|---|
java.util.List<F.Callback<A>> |
callbacks
Callbacks to invoke at each frame.
|
java.util.List<F.Callback0> |
closeCallbacks
Callbacks to invoke on close.
|
Constructor and Description |
---|
WebSocket.In() |
Modifier and Type | Method and Description |
---|---|
void |
onClose(F.Callback0 callback)
Registers a close callback.
|
void |
onMessage(F.Callback<A> callback)
Registers a message callback.
|
public final java.util.List<F.Callback<A>> callbacks
public final java.util.List<F.Callback0> closeCallbacks
public void onMessage(F.Callback<A> callback)
public void onClose(F.Callback0 callback)