Connecting to twitch with godot

Hi im trying to make a game for twitch chat to play from scratch and I cant seem to get it to connect, please help, heres the code:

extends Node

onready var tcpClient =
onready var has_connected = false

const CLIENT_PASS = ‘’
const CLIENT_NICK = ‘sirgladshoes’

Called when the node enters the scene tree for the first time.

func _ready():

func _process(delta):
if tcpClient.get_status() == 2 and !has_connected:

func _connect():
var err = tcpClient.connect_to_host(“”, 6697)

func _connect_to_channel():
print(“sending data”)
has_connected = true

Duplicate on What info do I need to send to the twitch api when I establish a connection with godot?

Please do not make duplicate threads for the same problem