public class PlayServerWebSocket extends AbstractServerWebSocket
ServerWebSocket for Play 2.closeActions, errorActions, messageActions| Constructor and Description |
|---|
PlayServerWebSocket(play.mvc.Http.Request request,
play.mvc.WebSocket.In<String> in,
play.mvc.WebSocket.Out<String> out) |
| Modifier and Type | Method and Description |
|---|---|
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()
The URI used to connect.
|
close, closeAction, errorAction, messageAction, send, sendpublic String uri()
ServerWebSocketprotected void doClose()
doClose in class AbstractServerWebSocketprotected void doSend(ByteBuffer byteBuffer)
doSend in class AbstractServerWebSocketprotected void doSend(String data)
doSend in class AbstractServerWebSocketpublic <T> T unwrap(Class<T> clazz)
Http.Request and WebSocket.Out are available.Copyright 2014, The Vibe Project