Skip to content

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

Function: encodeTechCommand() ​

encodeTechCommand(command): string

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

Serializes a tech command as a text frame.

Parameters ​

command ​

op ​

"smoke" | "loop" | "jammer" | "greenWave" | "lawyer" | "redBehind" | "hackStart" | "hackStop" = ...

type ​

"tech" = ...

Returns ​

string