# Function handleRawWebSocketHandler

- handleRawWebSocketHandler(
  req: Request | undefined,
  path: string,
  actorDriver: ActorDriver,
  actorId: string,
  requestIdBuf: ArrayBuffer | undefined,
  connParams: unknown,
  ): Promise<UpgradeWebSocketArgs>

  #### Parameters

  - req: Request | undefined
  - path: string
  - actorDriver: ActorDriver
  - actorId: string
  - requestIdBuf: ArrayBuffer | undefined
  - connParams: unknown

  #### Returns Promise<UpgradeWebSocketArgs>

  - Defined in rivetkit-typescript/packages/rivetkit/src/actor/router-endpoints.ts:367