public class WebSocketConnection extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
empty |
static byte |
OPCODE_BINARY |
static byte |
OPCODE_CLOSE |
static byte |
OPCODE_CONT |
static byte |
OPCODE_PING |
static byte |
OPCODE_PONG |
static byte |
OPCODE_TEXT |
Constructor and Description |
---|
WebSocketConnection(NioWriter writer,
byte[] maskingBytes) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
SendResult |
send(String msg) |
SendResult |
sendBinary(byte[] buffer,
int offset,
int length) |
SendResult |
sendPong(byte[] bytes,
int offset,
int length) |
public static final byte OPCODE_CONT
public static final byte OPCODE_TEXT
public static final byte OPCODE_BINARY
public static final byte OPCODE_CLOSE
public static final byte OPCODE_PING
public static final byte OPCODE_PONG
public static final byte[] empty
public WebSocketConnection(NioWriter writer, byte[] maskingBytes)
public SendResult send(String msg)
public SendResult sendPong(byte[] bytes, int offset, int length)
public SendResult sendBinary(byte[] buffer, int offset, int length)
public void close()
Copyright © 2016. All Rights Reserved.