@Override
public void sendMessage(int messageType, String message) throws SocketIOException {
if (LOGGER.isLoggable(Level.FINE))
LOGGER.log(Level.FINE, "Session[" + getSession().getSessionId() + "]: " + "sendMessage(int, String): [" + messageType + "]: " + message);
if (is_open && getSession().getConnectionState() == ConnectionState.CONNECTED) {
sendMessage(new SocketIOFrame(SocketIOFrame.FrameType.DATA, messageType, message));
} else {
throw new SocketIOClosedException();
}
}