// Path: SocketIO-API/src/main/java/eu/k2c/socket/io/server/exceptions/SocketIOMalformedMessageException.java
// public class SocketIOMalformedMessageException extends SocketIOException {
// 	private static final long serialVersionUID = 1L;
// }


import eu.k2c.socket.io.server.exceptions.SocketIOMalformedMessageException;
		this.frameType = frameType;
		this.messageID = messageID;
		this.socketIOHandleAck = false;
		this.endPoint = endPoint;
		this.data1 = eventName;
		this.data2 = data;
	}

	/**
	 * Create a Socket.IO frame and define all parameters
	 * 
	 * @param frameType
	 * @param messageID
	 * @param socketIOHandleAck
	 * @param endPoint
	 * @param eventName
	 * @param data1
	 */
	public SocketIOFrame(final FrameType frameType, final long messageID, final boolean socketIOHandleAck,
			final String endPoint, final String eventName, final String data) {
		this.frameType = frameType;
		this.messageID = messageID;
		this.socketIOHandleAck = socketIOHandleAck;
		this.endPoint = endPoint;
		this.data1 = eventName;
		this.data2 = data;
	}

	public SocketIOFrame(final FrameType frameType) throws SocketIOMalformedMessageException {
		if (frameType != FrameType.CONNECT && frameType != FrameType.DISCONNECT && frameType != FrameType.HEARTBEAT)
// Path: SocketIO-API/src/main/java/eu/k2c/socket/io/server/exceptions/SocketIOMalformedMessageException.java
// public class SocketIOMalformedMessageException extends SocketIOException {
// 	private static final long serialVersionUID = 1L;
// }


// Path: SocketIO-Core/src/main/java/eu/k2c/socket/io/frames/SocketIOFrame.java
import eu.k2c.socket.io.server.exceptions.SocketIOMalformedMessageException;

		this.frameType = frameType;
		this.messageID = messageID;
		this.socketIOHandleAck = false;
		this.endPoint = endPoint;
		this.data1 = eventName;
		this.data2 = data;
	}

	/**
	 * Create a Socket.IO frame and define all parameters
	 * 
	 * @param frameType
	 * @param messageID
	 * @param socketIOHandleAck
	 * @param endPoint
	 * @param eventName
	 * @param data1
	 */
	public SocketIOFrame(final FrameType frameType, final long messageID, final boolean socketIOHandleAck,
			final String endPoint, final String eventName, final String data) {
		this.frameType = frameType;
		this.messageID = messageID;
		this.socketIOHandleAck = socketIOHandleAck;
		this.endPoint = endPoint;
		this.data1 = eventName;
		this.data2 = data;
	}

	public SocketIOFrame(final FrameType frameType) throws SocketIOMalformedMessageException {
		if (frameType != FrameType.CONNECT && frameType != FrameType.DISCONNECT && frameType != FrameType.HEARTBEAT)
			throw new SocketIOMalformedMessageException();