Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: chat web api mvp #1550

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

feat: chat web api mvp #1550

wants to merge 15 commits into from

Conversation

aronwk-aaron
Copy link
Member

@aronwk-aaron aronwk-aaron commented Apr 21, 2024

Web API for Chat server Minimum Viable Product

Features:

  • Send announcements in-game
  • Get online players
  • Get Teams

resolves #450

Only works on linux, get rekt
@aronwk-aaron
Copy link
Member Author

aronwk-aaron commented Apr 22, 2024

TODO: Add wait for startup check
it does this by itself

@aronwk-aaron aronwk-aaron changed the title feat: chat web api feat: chat web api mvp Apr 22, 2024
@aronwk-aaron
Copy link
Member Author

aronwk-aaron commented Apr 22, 2024

As discussed on discord: disabled by default, whitelist for IP(s) to listen on (default: localhost)
Done

@aronwk-aaron
Copy link
Member Author

aronwk-aaron commented Apr 22, 2024

Also need to add nlohmann as a 3rd party dep in a separate PR, cmake or header only
Done

@aronwk-aaron aronwk-aaron marked this pull request as ready for review April 25, 2024 22:25
dChatServer/PlayerContainer.h Outdated Show resolved Hide resolved
dChatServer/PlayerContainer.h Outdated Show resolved Hide resolved
resources/chatconfig.ini Show resolved Hide resolved
dChatServer/PlayerContainer.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebApi.h Outdated Show resolved Hide resolved
dChatServer/ChatWebApi.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebApi.cpp Show resolved Hide resolved
dChatServer/ChatWebApi.cpp Outdated Show resolved Hide resolved
EmosewaMC
EmosewaMC previously approved these changes Apr 26, 2024
@EmosewaMC EmosewaMC dismissed their stale review April 26, 2024 21:50

This is not threadsafe as I just realized.

@aronwk-aaron aronwk-aaron marked this pull request as draft April 27, 2024 06:13
@aronwk-aaron
Copy link
Member Author

NOTHING IS THREADSAFE sdlfnsdljfhasd;jklfsdljfnsdjklfnosdjklnf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ENH: Add live player count tracking
2 participants