Skip to content

Commit

Permalink
update example for wss
Browse files Browse the repository at this point in the history
  • Loading branch information
DubbleClick committed Aug 13, 2024
1 parent 0e8392e commit d83ecbb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions GuildWarsPartySearch.Bot/config.example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ PASSWORD=""
CHARACTER=""
# Map ID to travel to listen for party searches, default embark beach
MAP_ID="857"
# Composite district enum to use (e.g. 1 = AMERICAN) - check source code!
# Composite district enum to use (e.g. 1 = AMERICAN) - check Dependencies/Headquarter/include/client/constants.h!
DISTRICT="1"
# Endpoint to send party searches to
WEBSOCKET_URL="ws://localhost/party-search/update"
WEBSOCKET_URL="wss://localhost"
# Api key to provide as a header when connecting to above websocket
WEBSOCKET_API_KEY="development"
14 changes: 7 additions & 7 deletions GuildWarsPartySearch.Bot/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
#endif

#define _CRT_SECURE_NO_WARNINGS
#include <math.h>
#include <locale.h>
#include <clocale>
#include <cmath>
#include <cstdbool>
#include <csignal>
#include <cstdio>
#include <ctime>

#define HEADQUARTER_RUNTIME_LINKING
extern "C" {
Expand All @@ -27,11 +30,8 @@ extern "C" {
#endif

#include <fstream>
#include <signal.h>
#include <stdio.h>
#include <vector>
#include <atomic>
#include <time.h>
#include <codecvt>

#ifdef array
Expand Down Expand Up @@ -59,8 +59,8 @@ extern "C" {
struct BotConfiguration {
std::string web_socket_url = "";
std::string api_key = "development";
uint32_t map_id = 0; // Embark beach
District district = District::DISTRICT_AMERICAN;
uint32_t map_id = 0; // stay in current map
District district = District::DISTRICT_CURRENT;
uint32_t district_number = 0;
int32_t connection_retries = 10;
};
Expand Down

0 comments on commit d83ecbb

Please sign in to comment.