22 lines
504 B
Java
22 lines
504 B
Java
package com.tridium.websockets;
|
|
|
|
import java.io.IOException;
|
|
|
|
public interface WebSocket {
|
|
void attachHandler(WebSocketEventHandler webSocketEventHandler);
|
|
|
|
void close(WebSocketCloseReason webSocketCloseReason, byte[] bArr) throws IOException;
|
|
|
|
WebSocketContext getContext();
|
|
|
|
String getKey();
|
|
|
|
WebSocketState getState();
|
|
|
|
void handshake() throws HandshakeException;
|
|
|
|
byte[] parse() throws IOException, SocketClosedException;
|
|
|
|
void send(byte[] bArr) throws IOException;
|
|
}
|