Commit 010ee84
committed
fix(perps): add CloseEvent polyfill for hyperliquid SDK WebSocket transport
@nktkas/rews v2 (dependency of @nktkas/hyperliquid 0.32.2) uses
`new CloseEvent(...)` which is not available in React Native/Hermes.
This caused the WebSocket transport to crash on initialization,
preventing perps from loading in E2E tests.1 parent 608096d commit 010ee84
1 file changed
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
133 | 146 | | |
134 | 147 | | |
135 | 148 | | |
| |||
0 commit comments