# Interface RivetCloseEvent

interface RivetCloseEvent {
code: number;
currentTarget?: any;
reason: string;
rivetRequestId?: ArrayBuffer;
target?: any;
type: string;
wasClean: boolean;
}

#### Hierarchy (View Summary)

- RivetEvent
  - RivetCloseEvent

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:22

##### Index

### Properties

code
currentTarget?
reason
rivetRequestId?
target?
type
wasClean

## Properties

### code

code: number

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:23

### `Optional` currentTarget

currentTarget?: any

Inherited from RivetEvent.currentTarget

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:5

### reason

reason: string

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:24

### `Optional` `Experimental` rivetRequestId

rivetRequestId?: ArrayBuffer

Request ID for hibernatable websockets (provided by engine runner)

Inherited from RivetEvent.rivetRequestId

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:10

### `Optional` target

target?: any

Inherited from RivetEvent.target

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:4

### type

type: string

Inherited from RivetEvent.type

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:3

### wasClean

wasClean: boolean

- Defined in rivetkit-typescript/packages/rivetkit/src/common/websocket-interface.ts:25