Skip to content

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

Function: encodeNegotiate() ​

encodeNegotiate(command): string

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

Serializes an answer to the negotiator as a text frame.

Parameters ​

command ​

choice ​

"time" | "car" | "answer" | "decline" = ...

type ​

"negotiate" = ...

Returns ​

string