Skip to content

Commit 3deb0dd

Browse files
c-cubejeromeludmann
authored andcommitted
fix reconnect
1 parent 354eb03 commit 3deb0dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/reconnect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ export const reconnect: Plugin<ReconnectParams> = (client, options) => {
6060
const { remoteAddr } = client.state;
6161
client.emit("reconnecting", remoteAddr);
6262

63-
const { hostname, port } = remoteAddr;
63+
const { hostname, port, tls } = remoteAddr;
6464
timeout = setTimeout(
65-
async () => await client.connect(hostname, port),
65+
async () => await client.connect(hostname, port, tls),
6666
delay * 1000,
6767
);
6868
};

0 commit comments

Comments
 (0)