@expo/serve-sim 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/middleware.js +79 -79
- package/dist/native/serve-sim-native.node +0 -0
- package/dist/serve-sim.js +114 -114
- package/package.json +1 -1
- package/src/connect-to-fetch.ts +9 -0
- package/src/middleware.ts +41 -31
package/README.md
CHANGED
|
@@ -259,7 +259,7 @@ server.onUpgrade((request, socket) => {
|
|
|
259
259
|
});
|
|
260
260
|
```
|
|
261
261
|
|
|
262
|
-
The middleware reads the helper's state from `$TMPDIR/serve-sim/` and points the browser at the helper's stream, interaction WebSocket, and WebKit DevTools endpoints. By default those URLs target the helper's own port directly (
|
|
262
|
+
The middleware reads the helper's state from `$TMPDIR/serve-sim/` and points the browser at the helper's stream, interaction WebSocket, and WebKit DevTools endpoints. By default those URLs target the helper's own port directly (the helper answers loopback origins), so a plain `app.use(...)` mount works without touching your server's WebSocket handling.
|
|
263
263
|
|
|
264
264
|
### Single-port / remote proxying
|
|
265
265
|
|