I've added a copy-constructor to the WebSocketFactory which allows using it in a more diverse way to create sockets with the same base settings.
Example:
WebSocketFactory factory = getBaseFactory(); // stored factory with base settings such as connect timeout
factory = new WebSocketFactory(factory); // settings copied over
factory.setServerName("example.com"); // apply new settings
System.out.println(factory.getServerNames() == getBaseFactory().getServerNames()); // false
I've added a copy-constructor to the WebSocketFactory which allows using it in a more diverse way to create sockets with the same base settings.
Example:
Closes #201