blob: 50394130d927e397a9d64f4cb180906f04e090c8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
import { Payload, WebSocket } from "@fosscord/gateway";
import { setHeartbeat } from "../util/Heartbeat";
import { Send } from "../util/Send";
export async function onHeartbeat(this: WebSocket, data: Payload) {
// TODO: validate payload
setHeartbeat(this);
await Send(this, { op: 11 });
}
|