This commit is contained in:
Vlad 2026-03-10 14:36:35 +06:00
parent 6fe10eacfc
commit 181132e092

View File

@ -8,8 +8,8 @@ namespace ZL {
void WebSocketClientEmscripten::Connect(const std::string& host, uint16_t port) {
// Формируем URL. Обратите внимание, что в Web часто лучше использовать ws://localhost
//std::string url = "ws://" + host + ":" + std::to_string(port);
//std::string url = "wss://api.spacegame.fishrungames.com";
std::string url = "ws://localhost:8081";
std::string url = "wss://api.spacegame.fishrungames.com";
//std::string url = "ws://localhost:8081";
EmscriptenWebSocketCreateAttributes attr = {
url.c_str(),
nullptr,