SeatAnswer beta
TypeAlias of @v12-engine/engine/server
ts
export type SeatAnswer = {
player?: PlayerId;
name?: string;
id?: string;
rate?: string;
} | {
refuse: string;
};Where who asked sits (GameServerOptions.seat): a seat by its player (the first free one when left out), the name to use there (theirs, or the seat's, when left out), and who they are (id): one who comes again as the same id gets the seat they hold, from another page or after a drop, and the connection there before is let go. A seat another holds is refused. { refuse } sends them away with the reason, which they are told