This repository has been archived on 2026-02-28. You can view files and clone it, but cannot push or open issues or pull requests.
2022-03-07 19:15:33 +11:00

8 lines
280 B
TypeScript

import { WebSocket } from "@fosscord/gateway";
import { Payload } from "./index";
import { setHeartbeat } from "../util";
import { Server } from "../Server"
export async function onHeartbeat(this: Server, socket: WebSocket, data: Payload) {
await setHeartbeat(socket, data.d);
}