public Connection connect(String username, String hostname, int port) throws URISyntaxException {
URI uri = new URI("ws", null, "".equals(hostname) ? "localhost" : hostname, port, "/", null, null);
//URI uri = new URI("ws://localhost:37447/");
////localhost:8000/ws")) {
conn = new Connection(username, uri, this);
return conn;
}