Skip to content

Add socket support - #2

Draft
rmccue wants to merge 4 commits into
masterfrom
add-socket-support
Draft

Add socket support#2
rmccue wants to merge 4 commits into
masterfrom
add-socket-support

Conversation

@rmccue

@rmccue rmccue commented Nov 9, 2022

Copy link
Copy Markdown
Member

Adds support for port forwarding connections using raw sockets.

  • Changes payload handling to be binary (NUL) safe, matching Amazon's SSM client code
  • Adds input (writeRaw method) and output (rawOutput event) handlers to take raw data as Uint8Array instead of UTF-8 encoded string
  • Adds support for handshake events, used to negotiate support for specific operations
  • Adds a logger interface to facilitate development and debugging

Unlike the other string components, the payload can represent raw binary
data, so we should move the encoding and decoding up to the highest
layer we can.
@rmccue
rmccue marked this pull request as draft November 9, 2022 17:11
@rmccue

rmccue commented Nov 9, 2022

Copy link
Copy Markdown
Member Author

I'm experiencing an occasional issue where data encoding seems to have some problem when connecting a MySQL client, so digging into whether that's an issue with the encoding.

@joehoyle

joehoyle commented Sep 6, 2025

Copy link
Copy Markdown
Member

@rmccue wondering if we could merge for the Logger support

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