 		speed := 0
 	cmd = ?%speed% ;  ? is the set brightness mode command
 	TrayTip, , Speed: %speed%
-	socket.Send(cmd)
+	sendCmd(cmd)
 	; MsgBox %cmd%
 	return
 	

		TrayTip, ,Connection established to led controller!
		; InputBox, Data, WebSocket, Enter some text to send through the websocket.
		; this.Send(Data)
	}
	
	OnMessage(Event)

		mode := maxMode
	cmd = /%mode% ; / is the set effect mode command
	TrayTip, , Mode: %mode%
	sendCmd(cmd) 
	; MsgBox %cmd%
	return

