Represents a TCP or TLS socket connection used for network communication. This interface provides methods for reading, writing, managing the connection state, and handling TLS-specific features if applicable.
Sockets are created using Bun.connect()
or accepted by a Bun.listen()
server.