UserEventRequest type

Request for the user event.

type UserEventRequest =
  | { context: ConnectionContext; data: string; dataType: "text" }
  | { context: ConnectionContext; data: unknown; dataType: "json" }
  | { context: ConnectionContext; data: ArrayBuffer; dataType: "binary" }