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

add simple login payload api #3736

Closed

Conversation

Outfluencer
Copy link
Collaborator

With this api you can send a login payload and retrive the response of it with the same method.

It can be used for custom clients.
It could also be used to filter invalid clients that do not response.

If a packet was not requested an exception is thrown.

I made use of the CompletableFutures again.

@md-5
Copy link
Member

md-5 commented Sep 7, 2024

Do login payloads necessarily have a response?

@Outfluencer
Copy link
Collaborator Author

As i know yes.

"Used to implement a custom handshaking flow together with Login Plugin Response.
Unlike plugin messages in "play" mode, these messages follow a lock-step request/response scheme, where the client is expected to respond to a request indicating whether it understood. The notchian client always responds that it hasn't understood, and sends an empty payload."
~Protocol Wiki

@md-5 md-5 self-assigned this Sep 8, 2024
md-5 pushed a commit that referenced this pull request Sep 9, 2024
@md-5 md-5 closed this Sep 9, 2024
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.

2 participants