public class Grizzly2WebSocket extends WebSocket
bb, binaryWrite, cb, CLEAN_CLOSE, lastWrite, logger, NOT_SUPPORTED, uuid, WEBSOCKET_ACCEPT_DONE, WEBSOCKET_INITIATED, WEBSOCKET_RESUME, WEBSOCKET_SUSPEND
filters, 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, writeError
filters, interceptor, interceptor, invokeInterceptor, writeReady
public Grizzly2WebSocket(org.glassfish.grizzly.websockets.WebSocket webSocket, AtmosphereConfig config)
public boolean isOpen()
WebSocket
public WebSocket write(String s) throws IOException
WebSocket
write
in class WebSocket
s
- a websocket String messageIOException
public WebSocket write(byte[] data, int offset, int length) throws IOException
WebSocket
write
in class WebSocket
data
- a websocket byte messageoffset
- startlength
- endIOException
Copyright © 2016. All rights reserved.