UNPKG

@thaunknown/web-irc

Version:

A TypeScript port of irc-framework's WebIRC client, without the bloat of unnceessary packages.

22 lines (21 loc) 700 B
import { EventEmitter } from 'events'; export default class Connection extends EventEmitter { constructor(options: any); debugOut(out: any): void; registeredSuccessfully(): void; connect(options: any): void; calculateExponentialBackoff(): number; addReadBuffer(line: any): void; write(data: any, callback: any): any; /** * Create and keep track of all timers so they can be easily removed */ setTimeout(): NodeJS.Timeout; clearTimeout(tmr: any): void; clearTimers(): void; /** * Close the connection to the IRCd after forcing one last line */ end(data: any, had_error: any): void; setEncoding(encoding: any): any; }