Skip to content

Rename command to send_message and move framing to Connection#5

Merged
henrikbjorn merged 2 commits intomasterfrom
rename-command-to-send-message
Mar 13, 2026
Merged

Rename command to send_message and move framing to Connection#5
henrikbjorn merged 2 commits intomasterfrom
rename-command-to-send-message

Conversation

@henrikbjorn
Copy link
Member

Summary

  • Renames Base#commandsend_message to clarify it sends a raw message and waits for reply
  • Moves \n\n message framing into Connection#send_message, mirroring read_message on the read side
  • Inlines sendmsg protocol into Outbound#application and deletes sendmsg method
  • Adds CommandSocket#application using send_message directly
  • Removes Base#write — test hooks now use a dedicated log method and hook_log array
  • Requires connection argument on all listener constructors (removes unused = nil defaults)

- Rename Base#command → Base#send_message to clarify intent
- Move \n\n framing into Connection#send_message (mirrors read_message)
- Inline sendmsg into Outbound#application, delete sendmsg method
- Add CommandSocket#application using send_message
- Remove Base#write, separate test hook logging from protocol data
- Require connection argument (remove unused = nil defaults)
@henrikbjorn henrikbjorn self-assigned this Mar 12, 2026
@henrikbjorn henrikbjorn requested review from c960657 and mkyed March 12, 2026 16:23
@henrikbjorn henrikbjorn merged commit 69b388a into master Mar 13, 2026
3 checks passed
@henrikbjorn henrikbjorn deleted the rename-command-to-send-message branch March 13, 2026 06:52
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