Skip to content

Improve onMessage handling code#316

Merged
fregante merged 1 commit intomainfrom
clarify
Mar 3, 2025
Merged

Improve onMessage handling code#316
fregante merged 1 commit intomainfrom
clarify

Conversation

@fregante
Copy link
Copy Markdown
Collaborator

@fregante fregante commented Mar 3, 2025

The code had become a bit difficult to follow. I reorganized the 2 handler functions to separate their concerns more cleanly:

  • onMessageListener: log, decide, wraps response
  • prepareResponse: produces a raw value or error to respond with

@fregante fregante changed the title Improve handling code Improve onMessage handling code Mar 3, 2025
@fregante fregante merged commit 4d4ecbe into main Mar 3, 2025
10 checks passed
@fregante fregante deleted the clarify branch March 3, 2025 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant