Skip to content

Commit c75ce68

Browse files
docs: add engine heartbeat event
1 parent bed013c commit c75ce68

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

docs/server-api.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,6 +1642,11 @@ io.on("connection", (socket) => {
16421642
// called when the write buffer is drained
16431643
});
16441644

1645+
socket.conn.on("heartbeat", () => {
1646+
// called after each round trip of the heartbeat mechanism
1647+
console.log("heartbeat");
1648+
});
1649+
16451650
socket.conn.on("close", (reason) => {
16461651
// called when the underlying connection is closed
16471652
});

0 commit comments

Comments
 (0)