Irc icon indicating copy to clipboard operation
Irc copied to clipboard

Extract useful informations from connection URL

Open shulard opened this issue 9 years ago • 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

shulard avatar Oct 03 '16 09:10 shulard

Ready for this one @shulard 😉?

Hywan avatar Oct 14 '16 19:10 Hywan

Of course I'll work on it asap 😄

shulard avatar Oct 15 '16 09:10 shulard

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 :

I'll continue working on using socket properties inside the Node / Client asap.

shulard avatar Oct 25 '16 16:10 shulard