int type;
int operation;
boolean isDefaultProtocol = true;
if(command instanceof MessageBuffer) {
MessageBuffer buf = (MessageBuffer) command;
type = buf.readInt();
operation = buf.readInt();
}else{
// websocket
isDefaultProtocol = false;
List<Double> data = (List)command;