interface VoteCastMessage

Sent by WSProvider when the user upvotes a dump, after it has shown the vote. The server answers VoteAckMessage, or an ErrorMessage naming the dump, on which the client undoes the vote, as it does when neither comes within 5 s.

Properties

type: "vote_cast"
dumpId: string

Usage

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