@Deprecated
public static class WebSocket.In<A>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.util.List<java.util.function.Consumer<A>> |
callbacks
Deprecated.
Callbacks to invoke at each frame.
|
java.util.List<java.lang.Runnable> |
closeCallbacks
Deprecated.
Callbacks to invoke on close.
|
Constructor and Description |
---|
In()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
onClose(java.lang.Runnable callback)
Deprecated.
Registers a close callback.
|
void |
onMessage(java.util.function.Consumer<A> callback)
Deprecated.
Registers a message callback.
|
public final java.util.List<java.util.function.Consumer<A>> callbacks
public final java.util.List<java.lang.Runnable> closeCallbacks
public void onMessage(java.util.function.Consumer<A> callback)
callback
- the function to execute when a message is receivedpublic void onClose(java.lang.Runnable callback)
callback
- the function to execute when a socket closes