Skip to content

five-on-it / apps/server/src/cops-host / CopsClient

Interface: CopsClient ​

Defined in: apps/server/src/cops-host.ts:97

A player as the cops' host sees them.

Properties ​

character ​

character: number

Defined in: apps/server/src/cops-host.ts:101

Their character.


id ​

id: number

Defined in: apps/server/src/cops-host.ts:99

Their client id.


name ​

name: string

Defined in: apps/server/src/cops-host.ts:103

Their name.


party ​

party: string | undefined

Defined in: apps/server/src/cops-host.ts:105

The party they came with (a free roam's crew), if any.

Methods ​

send() ​

send(text): void

Defined in: apps/server/src/cops-host.ts:107

Sends them a text frame.

Parameters ​

text ​

string

Returns ​

void