Open
Description
Overview
RPC subscriptions do not work using React Native 0.77.0 with expo 52.0.33, @solana/kit version 2.1.1. This is because Event, EventTarget and CustomEvent are used in rpc-subscriptions-channel-websocket package, and these aren't available in RN.
Steps to reproduce
Create a new Expo app, install @solana/kit add a listener using the async iterator pattern.
Description of bug
EventTarget and CustomEvent aren't defined, example usage: https://github.com/anza-xyz/kit/blob/main/packages/rpc-subscriptions-channel-websocket/src/websocket-channel.ts#L117