Skip to content

feat: handle LoginFail push frames#32

Open
rinchen wants to merge 1 commit into
meshcore-dev:masterfrom
rinchen:feat/loginfail-push-handler
Open

feat: handle LoginFail push frames#32
rinchen wants to merge 1 commit into
meshcore-dev:masterfrom
rinchen:feat/loginfail-push-handler

Conversation

@rinchen

@rinchen rinchen commented Jul 19, 2026

Copy link
Copy Markdown

Summary

  • Dispatch PushCodes.LoginFail (0x86) to a new onLoginFailPush handler.
  • Emit { reserved, pubKeyPrefix } matching the LoginSuccess layout.
  • Drop the "not usable yet" comment on LoginFail now that it is wired.

Context

Colorado-Mesh/mesh-client currently carries this as a pnpm patch against @liamcottle/meshcore.js@1.13.0. Without this handler, wrong-password / ACL-denied logins only appear as unhandled frames.

Test plan

  • Attempt room login with a wrong password and confirm a LoginFail event with the expected pubkey prefix
  • Successful login still emits LoginSuccess only

Push code 0x86 (LoginFail) was defined but unused, so failed room/repeater
logins fell through to the unhandled-frame console log. Emit LoginFail with
the same reserved + 6-byte pubkey prefix layout as LoginSuccess.

Carried as a pnpm patch in Colorado-Mesh/mesh-client.
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.

1 participant