2026-03-17 13:31:18 -07:00

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;
}