public class Grizzly2WebSocket extends WebSocket
bb, binaryWrite, cb, CLEAN_CLOSE, lastWrite, logger, NOT_SUPPORTED, uuid, WEBSOCKET_ACCEPT_DONE, WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPENDfilters, reversedFilters| Constructor and Description |
|---|
Grizzly2WebSocket(org.glassfish.grizzly.websockets.WebSocket webSocket,
AtmosphereConfig config) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the underlying WebSocket
|
boolean |
isOpen()
Is the underlying WebSocket open.
|
WebSocket |
write(byte[] data,
int offset,
int length)
Use the underlying container's websocket to write the byte.
|
WebSocket |
write(String s)
Use the underlying container's websocket to write the String.
|
attachment, attachment, attributes, binaryWrite, broadcast, close, config, flush, lastWriteTimeStampInMilliseconds, notSupported, redirect, resource, resource, sendPing, sendPong, shiftAttributes, transform, transform, uuid, webSocketHandler, webSocketHandler, write, write, write, write, writeErrorfilters, interceptor, interceptor, invokeInterceptor, writeReadypublic Grizzly2WebSocket(org.glassfish.grizzly.websockets.WebSocket webSocket,
AtmosphereConfig config)
public boolean isOpen()
WebSocketpublic WebSocket write(String s) throws IOException
WebSocketwrite in class WebSockets - a websocket String messageIOExceptionpublic WebSocket write(byte[] data, int offset, int length) throws IOException
WebSocketwrite in class WebSocketdata - a websocket byte messageoffset - startlength - endIOExceptionCopyright © 2016. All rights reserved.