interface PingMessage

Sent by the server to every socket every 30 s. WSProvider answers PongMessage, and a socket that missed the previous ping is closed. The server also answers a client's ping, though the client never sends one.

Properties

type: "ping"

Usage

import { type PingMessage } from "shared/ws.ts";