Skip to content

five-on-it / packages/protocol/src/police / parseNegotiate

Function: parseNegotiate() ​

parseNegotiate(text): { choice: "time" | "car" | "answer" | "decline"; type: "negotiate"; } | undefined

Defined in: packages/protocol/src/police.ts:252

Parses a text frame as an answer to the negotiator; undefined when it is not one.

Parameters ​

text ​

string

Returns ​

{ choice: "time" | "car" | "answer" | "decline"; type: "negotiate"; } | undefined