class LoggingWebSocketConnection extends WebSocketConnectionWrapper
| 构造器和说明 |
|---|
LoggingWebSocketConnection(LogSink logSink,
WebSocketConnection connection) |
| 限定符和类型 | 方法和说明 |
|---|---|
WebSocketConnectionWrapper |
ping(byte[] message)
Sends a ping frame
|
WebSocketConnectionWrapper |
pong(byte[] message)
Sends a pong frame
|
WebSocketConnectionWrapper |
send(byte[] message)
Sends a binary frame
|
WebSocketConnectionWrapper |
send(byte[] message,
int offset,
int length)
Sends a binary frame
|
WebSocketConnectionWrapper |
send(String message)
Sends a text frame
|
close, data, data, data, dataKeys, execute, handlerExecutor, httpRequest, originalControl, underlyingControl, underlyingControl, versionprivate final LogSink logSink
LoggingWebSocketConnection(LogSink logSink, WebSocketConnection connection)
public WebSocketConnectionWrapper send(String message)
WebSocketConnectionsend 在接口中 WebSocketConnectionsend 在类中 WebSocketConnectionWrappermessage - frame payloadpublic WebSocketConnectionWrapper send(byte[] message)
WebSocketConnectionsend 在接口中 WebSocketConnectionsend 在类中 WebSocketConnectionWrappermessage - frame payloadpublic WebSocketConnectionWrapper send(byte[] message, int offset, int length)
WebSocketConnectionsend 在接口中 WebSocketConnectionsend 在类中 WebSocketConnectionWrappermessage - frame payloadoffset - The offset within the array of the first byte to be written; must be non-negative and no larger than message.lengthlength - The maximum number of bytes to be written to the given array; must be non-negative and no larger than message.length - offsetpublic WebSocketConnectionWrapper ping(byte[] message)
WebSocketConnectionping 在接口中 WebSocketConnectionping 在类中 WebSocketConnectionWrappermessage - the payload of the pingpublic WebSocketConnectionWrapper pong(byte[] message)
WebSocketConnectionpong 在接口中 WebSocketConnectionpong 在类中 WebSocketConnectionWrappermessage - the payload of the pingCopyright © 2014. All rights reserved.