Making WebSocketClient connection stuff pluggable via factory methods