Change HexChat.Socket from pull-based event source (read_line_async) to push-based event source (new_line, error signals).