MupgradeTLS
Bun

method

TCPSocket.upgradeTLS

upgradeTLS<Data>(
options: TLSUpgradeOptions<Data>
): [raw: Socket<Data>, tls: Socket<Data>];

Upgrades the socket to a TLS socket.

@param options

The options for the upgrade.

@returns

A tuple containing the raw socket and the TLS socket.

Referenced types

interface TLSUpgradeOptions<Data>