Skip to content

Fix READY event handler initialization#10

Merged
ncoop57 merged 1 commit intomainfrom
fix-ready-evt
Apr 12, 2026
Merged

Fix READY event handler initialization#10
ncoop57 merged 1 commit intomainfrom
fix-ready-evt

Conversation

@ncoop57
Copy link
Copy Markdown
Contributor

@ncoop57 ncoop57 commented Apr 12, 2026

Fixes an issue where the READY event handler wasn't properly registered during GatewayClient
initialization.

  • Move READY handler registration to init to ensure it's always available
  • Simplify on() method since handlers dict is now guaranteed to exist
  • Remove redundant gc.on('READY', gc.on_rdy) call that was executed at module level

This ensures the gateway can properly capture session_id and resume_url on initial connection.

@ncoop57 ncoop57 added the bug Something isn't working label Apr 12, 2026
@ncoop57 ncoop57 merged commit fc26620 into main Apr 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant