28 lines
460 B
Java
28 lines
460 B
Java
package com.tridium.websockets.niagara;
|
|
|
|
import java.io.IOException;
|
|
import java.io.OutputStream;
|
|
|
|
public interface WebSocketMessage {
|
|
|
|
public interface Frame {
|
|
byte[] getBytes();
|
|
|
|
byte getOpcode();
|
|
|
|
int getPayloadLength();
|
|
|
|
boolean getRSV1();
|
|
|
|
boolean getRSV2();
|
|
|
|
boolean getRSV3();
|
|
|
|
boolean isFin();
|
|
|
|
boolean isMask();
|
|
}
|
|
|
|
void write(OutputStream outputStream) throws IOException;
|
|
}
|