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

Large response is split into multiple "response" events #47

Open
ClementLevi opened this issue Dec 21, 2022 · 0 comments
Open

Large response is split into multiple "response" events #47

ClementLevi opened this issue Dec 21, 2022 · 0 comments

Comments

@ClementLevi
Copy link

*Using this package for Minecraft
*Many mods installed on Minecraft, like WorldEdit

*Sending "/say hi" via RCON
*Minecraft responded perfectly, "[rcon] hi"
*Feeling satisified to try more commands

*Sending "/help"via RCON
*So long was the response that the MC server split it into two and more packets, creating two events // rcon.on("response", ()=>{...})

The two events ruined the following event-driven procedure, where I used a queue to determine which client is connecting to the rcon module and only ONE of the event was expected.

Hope there can be a flag to see if the package is finished, and I can use that event to drive following services.

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

No branches or pull requests

1 participant