blob: 47f33f76272f7ae1082e58942dbcfdf2a33e16a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
|
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);
}
|