public class WsConnection extends StreamConnection
monitor, shuttingDown, url, uuid, worker| Modifier and Type | Method and Description |
|---|---|
io.undertow.websockets.core.WebSocketChannel |
channel() |
void |
close() |
void |
close(io.undertow.websockets.core.CloseMessage closeMessage) |
protected void |
closeChannel() |
boolean |
isOpen() |
void |
sendBinary(byte[] bytes) |
void |
sendBinary(ByteBuffer byteBuffer) |
void |
sendText(String message) |
protected void |
tryConnect() |
closeChannel, connect, reconnect, reconnectprotected void tryConnect()
throws Exception
tryConnect in class StreamConnectionExceptionpublic boolean isOpen()
public void close()
public void close(io.undertow.websockets.core.CloseMessage closeMessage)
protected void closeChannel()
closeChannel in class StreamConnectionpublic io.undertow.websockets.core.WebSocketChannel channel()
public void sendText(String message)
public void sendBinary(ByteBuffer byteBuffer)
public void sendBinary(byte[] bytes)
Copyright © 2017. All rights reserved.