We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using irc-socket and trying to connect via TLS to an IRC server does not work, just hangs indefinitely.
irc-socket
For reference when I get to addressing this issue.
This works:
const tls = require('tls'); const options = { rejectUnauthorized: false, host: 'irc.freenode.net', port: 6697 }; const socket = tls.connect(options, () => { console.log('client connected', socket.authorized ? 'authorized' : 'unauthorized'); process.stdin.pipe(socket); process.stdin.resume(); }); socket.setEncoding('utf8'); socket.on('data', (data) => { console.log(data); }); socket.on('end', () => { console.log('server ends connection'); });
This does not (timeout):
const PORT = 6697; const SECURE = true; var NetSocket = require("net").Socket; var TlsSocket = require("tls").TLSSocket; var IrcSocket = require("irc-socket"); var netSocket = new NetSocket(); let socket = netSocket; if (SECURE) { socket = new TlsSocket(netSocket, {rejectUnauthorized: false}); } var client = IrcSocket({ socket: socket, username: 'h_slvrbckt', nicknames: [ 'h_slvrbckt' ], server: 'irc.freenode.net', realname: 'h_slvrbckt', port: PORT, debug: console.log }); client.once('error', (err) => { console.log('irc client \'error\' occurred.' + err); }); client.once('close', () => { console.log('irc client \'close\' event fired.'); }); client.once('timeout', () => { console.log('timeout occurred, force-disconnect'); }); client.connectOptions.rejectUnauthorized = false; client.connect().then((res) => { if (res.isOk()) { console.log('connected'); } else { console.log('unable to connect to server'); } process.exit(); }); // console.log(client.impl); console.log(client.status); console.log(client.connectOptions); setTimeout(() => { console.log('timeout'); }, 40000);
The text was updated successfully, but these errors were encountered:
Created a PR Havvy/irc-socket#26
Sorry, something went wrong.
silverbucket
No branches or pull requests
Using
irc-socket
and trying to connect via TLS to an IRC server does not work, just hangs indefinitely.For reference when I get to addressing this issue.
This works:
This does not (timeout):
The text was updated successfully, but these errors were encountered: