This pull request was opened to address the "window.addEventListener is not a function" error when trying to run Hocuspocus provider on mobile, using Expo.
After watching Evan Bacon's talk about Expo Router v3 at React Conf, I got so inspired to test real-time collaboration using Expo.
Since I am already familiar with it, why not trying hocuspocus?
To make it happen, I just needed to use a NodeJS Crypto polyfill and fix this "window" bug.
Description
This pull request was opened to address the "window.addEventListener is not a function" error when trying to run Hocuspocus provider on mobile, using Expo.
Currently:
After changes:
https://github.com/ueberdosis/hocuspocus/assets/42624869/b4c7eba7-f6cb-4ab2-9eb6-a69d1ce20a29
Context
After watching Evan Bacon's talk about Expo Router v3 at React Conf, I got so inspired to test real-time collaboration using Expo. Since I am already familiar with it, why not trying hocuspocus?
To make it happen, I just needed to use a NodeJS Crypto polyfill and fix this "window" bug.
Here is the full code of the working proof of concept: https://github.com/qwikens/qwikens-native