From f80792c6e0e0ef167132ccec65105bb6a422031f Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 20 Apr 2024 23:10:40 +0500 Subject: upd: set the url for websocket --- src/irc/client.cpp | 5 +++++ src/irc/client.hpp | 3 +++ 2 files changed, 8 insertions(+) (limited to 'src/irc') diff --git a/src/irc/client.cpp b/src/irc/client.cpp index ed9552e..a4a2e5c 100644 --- a/src/irc/client.cpp +++ b/src/irc/client.cpp @@ -7,4 +7,9 @@ using namespace RedpilledBot::IRC; Client::Client(std::string username, std::string password) { this->username = username; this->password = password; + + this->host = "wss://irc-ws.chat.twitch.tv"; + this->port = "443"; + + this->websocket.setUrl(this->host + ":" + this->port); } diff --git a/src/irc/client.hpp b/src/irc/client.hpp index 493235b..18e9854 100644 --- a/src/irc/client.hpp +++ b/src/irc/client.hpp @@ -15,6 +15,9 @@ namespace RedpilledBot { std::string username; std::string password; + std::string host; + std::string port; + ix::WebSocket websocket; }; } -- cgit v1.2.3