Closed ghost closed 10 years ago
Then we need something like this in the actual code:
$url = Mojo::URL->new($self->server);
$self->{stream_id} = $self->ioloop->client(
address => $url->host,
port => $url->port || 6667,
local_address => $url->param('local_address'),
...
What I really don't like about this is that i just realized I should have done the same thing for the TLS stuff.
Thank you for the code example ^^ and for the assistance!
I don't like the extra attribute. I'm thinking we should rather start supporting URL, like we do in Mojo::Redis: