public boolean leaveChannel(ChatChannel channel, User user){
		boolean returnValue = false;
		try {
			Socket socket = new Socket(SERVER_ADDRESS_CHAT, CHAT_PORT);
			
			socket.setSoTimeout(TIMEOUT);
			
			OutputStream outputStream = socket.getOutputStream();
			ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);
			
			InputStream inputStream = socket.getInputStream();
			ObjectInputStream objectInputStream = new ObjectInputStream(inputStream);
			
			objectOutputStream.writeObject("LEAVE_CHANNEL");
			objectOutputStream.writeObject(channel);
			objectOutputStream.writeObject(user);
			objectOutputStream.flush();
			
			returnValue = (boolean)objectInputStream.readObject();
			
			socket.close();
		}catch (SocketException e){
			new ErrorFrame("Server unreachable!");
		} catch (SocketTimeoutException e){
			new ErrorFrame("Connection timed out");
		} catch (Exception e) {
			new ErrorFrame("An unknown Error occoured");
		}
		return returnValue;
	}