Extract useful informations from connection URL
shulard opened this issue · 3 comments
As mentioned in the PR #22, the Irc connection URL can contains a lot of details about the connection that must be done : nickname, password, channel...
We need to retrieve this URI information to use them in the connection. For the moment we are throwing away all additional informations given (authentication, channel...).
Irc RFCs :
- https://tools.ietf.org/html/draft-butcher-irc-url-04
- https://www.w3.org/Addressing/draft-mirashi-url-irc-01.txt
The list of information that can be retrieved from URL: https://tools.ietf.org/html/draft-butcher-irc-url-04#section-2.1
Of course I'll work on it asap 😄
Hello,
I've started a PR to work on that issue. For the moment it's WIP but I've already added Hoa\Irc\Socket
properties and also updated the transport wrapper behaviour.
Some questions about the IRC specification on which I can't found answers reading RFCs.
By default, the entity defined in the URL is considered as a channel but :
- Is this true even if the entity doesn't start with
#
or%23
? - Is it an error to use an URL like
irc://host.com/channel
to join ?
I've also added two "TODO" in the code around :
- entity parsing when entity is a user ;
- options validation.
I'll continue working on using socket properties inside the Node
/ Client
asap.