DanielLeens opened a new pull request, #13522: URL: https://github.com/apache/seatunnel/pull/13522
Yes, this contributes to Apache SeaTunnel. ### Purpose Add a WebSocket client Sink in the existing WebSocket artifact. This extends the connector originally introduced in #12465; the related existing Source issue #13452 and its active Source fixes remain separate and unchanged. Server Source support is outside this direction. ### Changes Add Sink-only Factory SPI, options, writer/client, same-artifact mapping and English/Chinese docs. JSON and text use text messages; a selected byte-array column produces a binary message. Writers connect lazily, keep a persistent connection, bound frame/queue admission, and propagate listener failures at write, checkpoint/flush and close. Handshake, write, drain and close waits are finite. An optional masked bearer token requires verified WSS. Credentials in URLs, arbitrary request header maps, redirects and reconnect/resend are unsupported. There are no POM or existing Source changes. The connector reuses the existing shaded OkHttp 4.12.0 and dedicated WebSocket E2E module. ### Coverage authored Nine real-Zeta E2E methods independently capture exact received JSON/text/binary messages, ordering, Unicode/nulls/numeric precision, authenticated TLS, final drain/close, empty input, invalid/oversized frames, rejected authentication, redirects, untrusted TLS, held open/close handshakes, reset before/after a received frame, queue/transport/drain budgets and checkpoint/source-replay behavior. Existing Source tests are preserved. ### Validation and limits Scoped Spotless apply/check, static wiring/docs/API checks, exact file hashes and diff checks passed. Compilation, packaging and all test execution are **pending GitHub CI**; no local runtime checks ran. Local queue drain and normal connection close do not establish application acceptance or durable delivery. There is no per-message acknowledgement or transaction; engine replay can duplicate frames, and parallel writers have no shared ordering. The existing client parses inbound messages without a connector-configured incoming-message cap, so use a trusted peer. Other engines remain unverified. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
