public void send(String message) {
		System.err.println(message);
		
		if (socket != null && socket.isConnected()) {
			try {
				if(Server.get().getHuffman()) {
					out.write(Protocol.encode(Huffman.getEncoder().encode(message, 0)));
				} else {
					out.write(Protocol.encode(message.getBytes()));
				}
				
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
		
		// Send over WebSocket
		if(websocket != null && websocket.isOpen()) {
			try {
				websocket.send(Websocket.withHuffman() ? new String(Huffman.getEncoder().encode(message, 0)) : message);
			} catch (Exception e) {
				e.printStackTrace();
			}
		}
	}