public class PlayServerWebSocket extends AbstractServerWebSocket
ServerWebSocket for Play 2.binaryActions, closeActions, errorActions, textActions| Constructor and Description |
|---|
PlayServerWebSocket(Http.Request request,
WebSocket.In<String> in,
WebSocket.Out<String> out) |
| Modifier and Type | Method and Description |
|---|---|
ServerWebSocket |
binaryAction(Action<ByteBuffer> action) |
protected void |
doClose() |
protected void |
doSend(ByteBuffer byteBuffer) |
protected void |
doSend(String data) |
<T> T |
unwrap(Class<T> clazz)
Http.Request and WebSocket.Out are available. |
String |
uri() |
close, closeAction, errorAction, send, send, textActionpublic PlayServerWebSocket(Http.Request request, WebSocket.In<String> in, WebSocket.Out<String> out)
public ServerWebSocket binaryAction(Action<ByteBuffer> action)
binaryAction in interface ServerWebSocketbinaryAction in class AbstractServerWebSocketpublic String uri()
protected void doClose()
doClose in class AbstractServerWebSocketprotected void doSend(String data)
doSend in class AbstractServerWebSocketprotected void doSend(ByteBuffer byteBuffer)
doSend in class AbstractServerWebSocketpublic <T> T unwrap(Class<T> clazz)
Http.Request and WebSocket.Out are available.Copyright 2014, The Vibe Project