# Interface UpgradeWebSocketArgs

interface UpgradeWebSocketArgs {
onClose: (event: any, ws: WSContext) => void;
onError: (error: any, ws: WSContext) => void;
onMessage: (event: any, ws: WSContext) => void;
onOpen: (event: any, ws: WSContext) => void;
}

- Defined in rivetkit-typescript/packages/rivetkit/src/common/inline-websocket-adapter2.ts:15

##### Index

### Properties

onClose
onError
onMessage
onOpen

## Properties

### onClose

onClose: (event: any, ws: WSContext) => void

- Defined in rivetkit-typescript/packages/rivetkit/src/common/inline-websocket-adapter2.ts:18

### onError

onError: (error: any, ws: WSContext) => void

- Defined in rivetkit-typescript/packages/rivetkit/src/common/inline-websocket-adapter2.ts:19

### onMessage

onMessage: (event: any, ws: WSContext) => void

- Defined in rivetkit-typescript/packages/rivetkit/src/common/inline-websocket-adapter2.ts:17

### onOpen

onOpen: (event: any, ws: WSContext) => void

- Defined in rivetkit-typescript/packages/rivetkit/src/common/inline-websocket-adapter2.ts:16