Skip to content

Commit

Permalink
Fix front end target (#51)
Browse files Browse the repository at this point in the history
Adjust readme
  • Loading branch information
AlexMacocian authored Jan 14, 2024
1 parent 1efe9e5 commit 6165d91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion GuildWarsPartySearch.FrontEnd/Content/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ let locationMap = new Map();
let socket;
let isConnected = false;
function connect() {
socket = new WebSocket('wss://guildwarspartysearch.azurewebsites.net/party-search/live-feed');
socket = new WebSocket('wss://172.205.248.56/party-search/live-feed');

socket.onopen = function (event) {
console.log('Connected to WebSocket server.');
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Party Search Aggregator
]
}
```
- Bots need to have `X-ApiKey` and `User-Agent` headers set. `X-ApiKey` is used to protect access to the update endpoint, while `User-Agent` identifies the bot
- Bots need to have `User-Agent` header set and have their IP whitelisted. `User-Agent` identifies the bot.
- The client/user connects with websocket to `party-search/live-feed`
- When the client first connects, it receives a json with all the party searches currently in the database (all the snapshots). Sample payload:
```json
Expand Down Expand Up @@ -63,7 +63,7 @@ Party Search Aggregator
}
```
- Whenever a bot posts an update, all clients receive that update in the same json format as the first message
- There's a status page `/status/bots` where you can see a list of all the currently connected bots. You need to have `X-ApiKey` set to see the page
- There's a status page `/status/bots` where you can see a list of all the currently connected bots. You need to have your IP whitelisted set to see the page
- Check https://guildwarspartysearch.azurewebsites.net/swagger for the swagger docs and examples of the server

## GuildWarsPartySearch.BotUploader
Expand Down

0 comments on commit 6165d91

Please sign in to comment.