Open hifi opened 3 years ago
To implement CAP negotiations (for SASL) before registering a connection I had to split connection registration out of AioConnection::connect(): https://github.com/hifi/heisenbridge/blob/master/heisenbridge/irc.py#L120
AioConnection::connect()
My implementation is currently ugly but the requirement remains that registration needs to be split out either optionally (arg for connect to disable?) or by changing the API to require calling register() after connect().
register()
connect()
I can PR an accepted solution.
I'll take the ugly part back, I refactored it to expect() flow.
expect()
To implement CAP negotiations (for SASL) before registering a connection I had to split connection registration out of
AioConnection::connect()
: https://github.com/hifi/heisenbridge/blob/master/heisenbridge/irc.py#L120My implementation is currently ugly but the requirement remains that registration needs to be split out either optionally (arg for connect to disable?) or by changing the API to require calling
register()
afterconnect()
.I can PR an accepted solution.