Hello, Can you upgrade a TCP socket to TLS? If not, is there anyway to route that Sockets traffic to a TLS TCP Socket without closing the original connection?
const tcp_socket = Bun.listen({ ..., socket: {
data: (socket, data) => socket.upgrade(...);
// -- Or, somehows pass data from this socket to the TLS_Socket
data: (socket, data) => send_data_to_tls_socket(tls_socket, data);
}});
const tls_socket = Bun.listen({ tls: { ... }, ... });