public void listen() {
		listen = new Thread("Listen")
		{
			public void run()
			{
				while (running)
				{
					Message message = null;
					try
					{
						message = client.receive();
					}
					catch (IOException e)
					{
						continue;
					}
					switch (message.getType())
					{
					case connect:
						client.setID(messageOps.getContentString(message));
						console("Successfully connected to server.");
						break;
					case disconnect:
						break;
					case message:
						console(messageOps.getContentString(message));
						break;
					case ping:
						client.send(new Message.Builder().setMessageType(Message.Type.ping)
														 .setContent(client.getID().toString().getBytes()).build());
						break;
					case control:
						doOps(message);
						break;
					case user: 
						String[] u = messageOps.getContentString(message).split("\n");
						users.update(u);
						break;
					default:
						break;
					}
				}
			}
		};
		listen.start();
	}