Skip to content

Commit

Permalink
test: use the reconnect event of the Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
darrachequesne committed Oct 13, 2020
1 parent 9c7a48d commit c0d171f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/socket.io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ describe("socket.io", () => {
srv.close();
});

clientSocket.on("reconnect_failed", () => {
clientSocket.io.on("reconnect_failed", () => {
done();
});
});
Expand Down Expand Up @@ -1516,7 +1516,7 @@ describe("socket.io", () => {
});
clientSocket.once("connect", () => {
srv.close(() => {
clientSocket.on("reconnect", () => {
clientSocket.io.on("reconnect", () => {
clientSocket.emit("ev", "payload");
});
sio.listen(port);
Expand Down

0 comments on commit c0d171f

Please sign in to comment.