Skip to content

1681-engine / index / ConnectionEvents

Interface: ConnectionEvents ​

Defined in: src/net/Connection.ts:12

Properties ​

close ​

ts
close: object;

Defined in: src/net/Connection.ts:15

The socket closed; willRetry when it will reconnect by itself.

code ​

ts
code: number;

reason ​

ts
reason: string;

willRetry ​

ts
willRetry: boolean;

message ​

ts
message: object;

Defined in: src/net/Connection.ts:19

Any message the engine does not handle: the game's own.

Index Signature ​

ts
[k: string]: unknown

t ​

ts
t: string;

open ​

ts
open: undefined;

Defined in: src/net/Connection.ts:13


snapshot ​

ts
snapshot: Snapshot;

Defined in: src/net/Connection.ts:17


welcome ​

ts
welcome: object;

Defined in: src/net/Connection.ts:16

id ​

ts
id: number;

snapRate ​

ts
snapRate: number;

stepRate ​

ts
stepRate: number;

t ​

ts
t: "welcome";

tick ​

ts
tick: number;

Released under the MIT License.