play.mvc
Class WebSocket.In<A>

java.lang.Object
  extended by play.mvc.WebSocket.In<A>
Enclosing class:
WebSocket<A>

public static class WebSocket.In<A>
extends java.lang.Object

A WebSocket in.


Field Summary
 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 Summary
WebSocket.In()
           
 
Method Summary
 void onClose(F.Callback0 callback)
          Registers a close callback.
 void onMessage(F.Callback<A> callback)
          Registers a message callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callbacks

public final java.util.List<F.Callback<A>> callbacks
Callbacks to invoke at each frame.


closeCallbacks

public final java.util.List<F.Callback0> closeCallbacks
Callbacks to invoke on close.

Constructor Detail

WebSocket.In

public WebSocket.In()
Method Detail

onMessage

public void onMessage(F.Callback<A> callback)
Registers a message callback.


onClose

public void onClose(F.Callback0 callback)
Registers a close callback.