mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
# Motivation
Over the past months, we have been working on new async bridges to make using NIO's `Channel` from Swift Concurrency possible. Since this work was far reaching we have opted to land all of it as SPI. Now the time has come and we feel confident enough to make the SPI official API. This comes after testing the new APIs in various scenarios such as HTTP 1&2, HTTP upgrades, protocol negotiation and in benchmarks.
# Modification
This PR removes the SPI from the `NIOAsyncChannel`, the bootstrap methods, protocol negotiation and HTTP upgrade.
# Result
Everyone can use the our new APIs🚀
NIOTCPEchoClient
This sample application provides a simple TCP echo client that will send multiple messages to an
echo server and wait for a response of all of them. Before running this client, make sure to start
the NIOTCPEchoServer.
To run this client execute the following from the root of the repository:
swift run NIOTCPEchoClient