# Interface RivetEvent

interface RivetEvent {
currentTarget?: any;
rivetRequestId?: ArrayBuffer;
target?: any;
type: string;
}

#### Hierarchy (View Summary)

- RivetEvent
  - RivetCloseEvent
  - RivetMessageEvent

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

##### Index

### Properties

currentTarget?
rivetRequestId?
target?
type

## Properties

### `Optional` currentTarget

currentTarget?: any

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

### `Optional` `Experimental` rivetRequestId

rivetRequestId?: ArrayBuffer

Request ID for hibernatable websockets (provided by engine runner)

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

### `Optional` target

target?: any

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

### type

type: string

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