blob: 90a4023043227d613cee50cb5dde8f357cc31c2f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
import { CLOSECODES, Payload } from "../util/Constants";
import { Send } from "../util/Send";
import { setHeartbeat } from "../util/setHeartbeat";
import WebSocket from "../util/WebSocket";
export function onHeartbeat(this: WebSocket, data: Payload) {
setHeartbeat(this);
Send(this, { op: 11 });
}
|