public static void main(String[] args) {
		try {
			Socket sk = new Socket("192.168.1.220",9090);
			sk.getOutputStream().write("GET /echo HTTP/1.1\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Upgrade: websocket\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Connection: Upgrade\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Host: 192.168.1.220:9090\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Origin: null\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Sec-WebSocket-Key: tO03f6yG86XB6K2k0UEfRg==\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Sec-WebSocket-Version: 13\r\n".getBytes("utf-8"));
			sk.getOutputStream().write("Sec-WebSocket-Extensions: x-webkit-deflate-frame\r\n\r\n".getBytes("utf-8"));
			sk.getOutputStream().flush();
			
			Thread.currentThread().sleep(200);
			
			createInputMonitorThread(sk.getInputStream(),sk.getOutputStream());			
			
			/*GET /echo HTTP/1.1
			Upgrade: websocket
			Connection: Upgrade
			Host: 192.168.1.220:9090
			Origin: null
			Sec-WebSocket-Key: tO03f6yG86XB6K2k0UEfRg==
			Sec-WebSocket-Version: 13
			Sec-WebSocket-Extensions: x-webkit-deflate-frame*/
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (InterruptedException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}