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 (now with no threading) #1715

Merged
merged 39 commits into from
Jan 17, 2025
Merged

feat: Chat Web API (now with no threading) #1715

merged 39 commits into from
Jan 17, 2025

Conversation

aronwk-aaron
Copy link
Member

@aronwk-aaron aronwk-aaron commented Jan 2, 2025

using mongoose for the http lib

Web API for Chat server Minimum Viable Product

Features:

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

resolves #450

@aronwk-aaron aronwk-aaron requested review from EmosewaMC, jadebenn, Jettford, Xiphoseer and Wincent01 and removed request for EmosewaMC and jadebenn January 2, 2025 23:04
Xiphoseer
Xiphoseer previously approved these changes Jan 2, 2025
dCommon/GeneralUtils.h Outdated Show resolved Hide resolved
Copy link
Collaborator

@EmosewaMC EmosewaMC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

questions and some ways to consider designing where the logic is handled

we should chat about what I think would be an easier to read message handler for the webapi server (moving the actual logic to the places that own it, and only using the handler to receive, figure out where it goes, and return a result

dChatServer/ChatWebAPI.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebAPI.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebAPI.h Outdated Show resolved Hide resolved
dChatServer/ChatWebAPI.h Outdated Show resolved Hide resolved
@aronwk-aaron aronwk-aaron requested a review from Xiphoseer January 3, 2025 15:28
Copy link
Member

@Wincent01 Wincent01 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments, nothing blocking.

dChatServer/ChatWebAPI.cpp Show resolved Hide resolved
dChatServer/ChatWebAPI.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebAPI.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebAPI.cpp Outdated Show resolved Hide resolved
dChatServer/PlayerContainer.cpp Outdated Show resolved Hide resolved
@aronwk-aaron aronwk-aaron requested a review from Wincent01 January 6, 2025 07:23
versions.txt Outdated Show resolved Hide resolved
@EmosewaMC
Copy link
Collaborator

my commit isnt a merge commit, forgot to rename it

@aronwk-aaron aronwk-aaron marked this pull request as draft January 10, 2025 04:01
@aronwk-aaron
Copy link
Member Author

re-working some stuff

dChatServer/ChatWebAPI.cpp Outdated Show resolved Hide resolved
dChatServer/ChatWebAPI.h Outdated Show resolved Hide resolved
dCommon/dEnums/eHTTPMethod.h Show resolved Hide resolved
dCommon/dEnums/eHTTPStatusCode.h Show resolved Hide resolved
dCommon/dEnums/eHTTPStatusCode.h Show resolved Hide resolved
thirdparty/mongoose/mongoose.h Outdated Show resolved Hide resolved
@aronwk-aaron aronwk-aaron marked this pull request as ready for review January 15, 2025 21:05
@EmosewaMC
Copy link
Collaborator

I worked on this so I cannot approve this technically

@DarwinAnim8or DarwinAnim8or merged commit dc602a9 into main Jan 17, 2025
4 checks passed
@EmosewaMC EmosewaMC deleted the webapiv2 branch January 17, 2025 21:46
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
7 participants